Exclude Options for Tar +

Quick thought…

You can pretty much exclude a file, folder or specific pattern when using tar:


# tar cvfp 052613tar.tar /my/path/Example.com_DIR --exclude=/my/path/Example.com_DIR/images

 
or tar everything in the current directory, but exclude two specific files

# tar cvpf 052613tar.tar * --exclude=index.html --exclude=myimage.png

 
or

tar cvpf 052613tar.tar * --exclude='file1' --exclude='pattern*' --exclude='file2'

  


p.s some tar basics…

(more…)

Continue ReadingExclude Options for Tar +