Linux zip a drectory to the exlcusion of some internal directories
I'm trying to zip the public_html folder to the exclusion of two folders,
like this:
tar -czf myzip.tar.gz --exclude=home/mydomain/public_html/folder0
--exclude=home/zeejfl6/folder1 /home/mydomain/public_html/
But I get the error:
tar: Removing leading `/' from member names
I tried a few combinations... What am I doing wrong?
No comments:
Post a Comment