Forum Moderators: phranque

Message Too Old, No Replies

Retain File Permissions during FTP

         

matthewamzn

6:49 am on Jan 25, 2006 (gmt 0)

10+ Year Member



Is there a way to retain file permissions when transferring files through ftp to a new server?

Raymond

6:52 am on Jan 25, 2006 (gmt 0)

10+ Year Member



I think some FTP programs have a chmod function. You can try WSFTP.

jomaxx

7:17 am on Jan 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not if you are FTP'ing from a Windows client, I don't think, because Windows doesn't use permissions the same way at all.

I believe if you "tar" files on the original server, and then untar them after transferring them to the new server, then the permissions will be saved. I can't be more specific because I only have to do this once every few years, but I think the answer is in there somewhere. This also simplifies the file transfer process vastly.

matthewamzn

7:25 am on Jan 25, 2006 (gmt 0)

10+ Year Member



What is the command to create and extract a tar file?

matthewamzn

7:40 am on Jan 25, 2006 (gmt 0)

10+ Year Member



Nevermind, i figured this out. Tar files were definitely the way to go.