#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 1999
    Location
    USA
    Posts
    8
    Rep Power
    0

    Angry


    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. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Tampa, Florida
    Posts
    2
    Rep Power
    0
    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

IMN logo majestic logo threadwatch logo seochat tools logo