|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does anyone know of a program that can sort of take a "snapshot" of the permissions in a directory and then apply those permission to the same files on my new server?
As I'm sure you guys do from time to time, I often have to transfer web sites from one server to server. Each time I transfer a site I have to chmod the files on the new server to match the ones on the old server. Thanks for your help, Camden |
|
#2
|
|||
|
|||
|
I don't know under what application you are transfering files, but you could use the "cp -p <files>" or "cp -rp <dir>" if you are doing directories and context. This will preserve not only files, but also preserves the owner and group id, permissions modes. Later,Rob
|
![]() |
| Viewing: Dev Shed Forums > Web Hosting > Web Hosting > script to preserve file permissions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|