zip archives and file permissions

Discussion in 'Site & Server Administration' started by dallasld, Mar 2, 2007.

  1. #1
    Is there a way to create a .zip archive and retain the file permission?

    Here is what I am trying to do is download files from one server onto my local machine then create a zip archive to move the files to another server. once I upload and extract on the new machine via cpanel's file manager all my files end up with permissions=600, which is not what they were on the first server.

    I am currently using WinRAR to create the .zip archive. Do I need to be using a different compression program?

    I know I could just change the permissions manually, but it is over 150 files and I am working on an archive that will allow me to move the files quickly and easily.

    any assistance would be appreciated.

    cheers.
     
    dallasld, Mar 2, 2007 IP
  2. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't think you can preserve the permission but since you are on linux host, request for shell for at least 30 minutes and login to chown everything :D
     
    tanfwc, Mar 2, 2007 IP