OVH Community, your new community space.

Creating a tarball archive retaining structure/permissions


Dave
08-09-2009, 19:54
ahhh -p thank you!

wackomoo
08-09-2009, 18:51
tar -pczf name_of_your_archive.tar.gz /path/to/directory



Quote 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

Dave
08-09-2009, 18:04
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