#510 Issue closed
: Excluding files and/or directories from BACKUP=NETFS tar backup¶
Labels: support / question
bbeaver opened issue at 2014-11-20 20:48:¶
What's the trick for excluding files from being picked up by the NETFS tar backup process? I've tried multiple variations using the EXCLUDE_BACKUP and COPY_AS_IS_EXCLUDE variables within my local.conf. For example, what would I add to my local.conf if I wanted to exclude the /apps/data01 directory from the tar backup?
Thanks
gdha commented at 2014-11-24 13:50:¶
You could use the following, e.g.:
BACKUP_PROG_EXCLUDE=( ${BACKUP_PROG_EXCLUDE[@]} '/var/lib/kvm/images/*' '/var/lib/libvirt/images/*' )
COPY_AS_IS_EXCLUDE=( ${COPY_AS_IS_EXCLUDE[@]} '/var/lib/kvm/images/*' '/var/lib/libvirt/images/*' )
EXCLUDE_MOUNTPOINTS=( ${EXCLUDE_MOUNTPOINTS[@]} /exports )
AUTOEXCLUDE_PATH=( ${AUTOEXCLUDE_PATH[@]} /mnt* /var/lib/kvm/images )
gdha commented at 2015-02-03 14:58:¶
@bbeaver was the above an answer on your question? If yes, could we close this issue?
bbeaver commented at 2015-02-05 19:02:¶
Yes - thanks
[Export of Github issue for rear/rear.]