Web Hosting Talk







View Full Version : Transfering PHP uploaded files from one server to another


jon31
05-03-2006, 01:32 PM
Hey folks,

We've recently ordered another dedicated server from MediaTemple, and I need to move a bunch of PHP created folders and PHP uploaded files from one server, to the other. But because PHP created the files, the permissions are not the same as FTP, and I can't move them.

Anyone know of a way I can do this?

Thanks for your help,
Jon

orbitz
05-03-2006, 01:40 PM
can you just download them first?

jon31
05-03-2006, 01:49 PM
Nope, can't download either. I get an error 550. But I just remember about this zip class I have. Maybe I can zip the folder, then download that. I think that's my best bet.

jon31
05-03-2006, 02:15 PM
The zip method worked. Thanks for sparking my brain orbitz.

carolinahosting
05-03-2006, 08:16 PM
why not shell in as root and use tar?

I do beleive if you "man tar" there is a switch to remember permisions and ownership.

providedname
05-04-2006, 05:47 AM
Make proper use of the chown command to change ownership of files. (man chown)

Make proper use of chmod command to change file attributes. (man chmod)