Your best friend for file transfer.

Fetch application logoFetch

Duplicating sites and keeping or setting the permissions (2 posts)

  • Started 15 years ago by Graemezee
  • Latest reply 15 years ago from Scott McGuire
  • Graemezee Member

    I have a site which i have to duplicate several times It uses a content management system which has thousands of files in a myriad of directories.

    most of the files are set to 664 and folders to 755 but being a content management system many of the folders have to be set 775 and files set to 664 so both i and the server can alter them.

    When duplicating the whole site all the files and folders are set to 664 and 755 respectfully which effectively paralyses the site.
    and it take an age to manually go through and alter the permissions. Especially when you try to change a folder with thousands of files in, it can take an age just to bring up the info box.

    Any help or suggestions on how to duplicate the site maintaining the existing permissions. Using Fetch 5.3

    Posted 15 years ago #

  • Scott McGuire Administrator


    Are you duplicating the site to a new directory on the same server, or are you copying it to a different server?

    Unfortunately, there really is no good way to do this if you are copying it to a different server. When files are uploaded to a new server (which is basically what is happening when you move them from one server to another - they are downloaded from one, and uploaded to another), they get the default permissions for files and folders on that server.

    If you are moving them on the same server, I'd recommend looking into working with them more directly by logging into the server with ssh or something similar, and then seeing if there is a command-line tool for copying files that preserves the permissions; then since the files are remain on the same server and you are copying them directly on the server, it may be possible to preserve the permissions.

    Sorry not to have a better answer.


    Scott McGuire
    Fetch Softworks

    Posted 15 years ago #


  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.