View Single Post
Old 07-12-2004, 12:04 PM  
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
Quote:
Originally posted by vending_machine
This should do it:

Code:
tar zcfp domains.tgz <paths>
snip from tar manual:

Code:
     -p
     --preserve-permissions  Extract all protection information.
Therefore here is no reason to use this directive while making the archive. The parameter has to be used while extracting. Tar backups the permissions by default but if you do unpack (without the p option) the permissions are stripped according to your umask setting.
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote