gzip - Linux zip a directory excluding some internal directories -
i'm trying zip public_html folder exclusion of 2 folders, this:
tar -czf myzip.tar.gz --exclude=home/mydomain/public_html/folder0 --exclude=home/zeejfl6/folder1 /home/mydomain/public_html/
but error:
tar: removing leading `/' member names
i tried few combinations... doing wrong?
it's not error, it's warning.
archives containing absolute paths files security risk. imagine archive containing /etc/passwd
.
if insist upon having absolute paths in archive, use -p
option:
-p, --absolute-names don't strip leading `/'s file names
Comments
Post a Comment