Unix: Create tar.gz from folder (retaining permissions)


/ Published in: Bash
Save to your folder(s)

omit the p to NOT retain permissions


Copy this code and paste it in your HTML
  1. tar -pczf name_of_your_archive.tar.gz /path/to/directory

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.