Create .tar.gz

Discussion in 'Technical' started by torben, May 22, 2005.

  1. torben

    torben New Member

    I'm sorry if this is a stupid question but I'm a total noob... :eek:

    I'd like to create a tar.gz archive of a directory, and I'd like to keep the permissions of the files and directories in the tar.gz. How do I do it?

  2. tylerdurden

    tylerdurden New Member

    tar -pczf name_of_your_archive.tar.gz /path/to/directory
  3. kshitiz

    kshitiz New Member

    Simple Answer

    If you type

    tar --help

    on command line, it will show you all the options that you are allowed to do.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page