Anyway to do a server to server move while retaining cmhod properties?

BurntToast

2[H]4U
Joined
Jun 14, 2003
Messages
3,678
I will be moving from http://dixiesys.com to http://www.hostpc.com and my website is around 800mb of raw files.

I tried transferring the data to my computer first, before offloading to the new server. But my connection times out ever hour or so. Even if I did get the files downloaded, uploading at 40kb/s max would be a nightmare.

So I'm thinking of doing a server to server transfer with FlashFXP (ftp client). Can anyone recommend this app or suggest a better one for me, or better idea? I doubt it will retain the chmod properties, but at least the files will be moved.

Thanks
 
If the servers are yours you can use rsync. It will allow you to sync directories and maintain all ownership of files.
 
rsync will work fine but you can also use scp (if you have access to ssh).

SCP with -p parameter to preserve your permissions

Code:
scp -rp username@host1:/path/to/dir [email]username@host2.com[/email]:/path/to/dir

If you dont have ssh support, you could always tar your directory up beforehand before transferring.

--KK
 
Both good ideas (scp and rsync). But if you just want to move the files, another method (provided you are using linux or similar) just use:

tar cvfpsz filename.tar.gz directory

Then ftp it over to the new server and use:

tar xvfpsz filename.tar.gz

The 'p' option retains the persmissions.
 
Back
Top