Frankly speaking, I did not want to waste time and bandwidth downloading images. Here is the syntax to exclude a directory.
# tar cvfp mytarball.tar /mypath/Example.com_DIR --exclude=/mypath/Example.com_DIR/images
Tar everything in the current directory but exclude two files
# tar cvpf mytar.tar * --exclude=index.html --exclude=myimage.png
1 comment:
You done a great job for doing tarred up the website's primary directory as well as excluded its images sub-directory.After reading this post it was very pathetic now its sounds look easy.Thanks for sharing.
windows
1079
Post a Comment