Friday, June 21, 2019

tar excluding directories

tar -pczf MyFile.tar.gz /home/user/myDirectory/ --exclude="./directoryToExclude1" --exclude="./directoryToExclude2"
Note that there is no "/" at the end of the path to the directory to exclude!

0 comments:

Post a Comment

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Search This Blog

Powered by Blogger.