Thursday, June 9, 2011

Exclude directories from TAR archive - CACHEDIR.TAG file

Prevent TAR from archiving directories of your choice. Add the file CACHEDIR.TAG in the directory you don't want it to be archived, with the following content:

Signature: 8a477f597d28d172789f06886806bc55
# marked as cache in order to be excluded from scheduled backup

No comments: