wackomoo
08-09-2009, 18:51
tar -pczf name_of_your_archive.tar.gz /path/to/directory
Originally Posted by
man
-c, --create
create a new archive
-f, --file [HOSTNAME:]F
use archive file or device F (default "-", meaning stdin/stdout)
-z, --gzip, --ungzip
filter the archive through gzip
-p, --preserve-permissions
extract all protection information
As per the title, in linux using 'tar' how do I create a .tar.gz archive whilst keeping the directory stucture and file permission/owner intact?
I'm having a special moment