Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keeping file permissions with FTP

Is there a way I can upload my files from my computer to my server without losing the permissions? Everything is linux.

Thank you!

like image 671
Matthew24 Avatar asked Oct 24 '22 03:10

Matthew24


1 Answers

You are aware that ftp is not the program to use on the internet in 2011. The password will be send in cleartext. (In a wired or WPA Enterprise protected wireless network you might be OK as long as all your traffic stays inhouse)

sftp is the secure replacement (based on ssh). put and get commands have the -P option to preserve the permissions.

like image 73
Uwe Geuder Avatar answered Oct 27 '22 10:10

Uwe Geuder