Backup and samba, exclude folder

Is possibile to add an option on samba share to create a folder that is excluded from data backup?
Because not all data stored in samba shares is “critical” and this option can save a lot of space :wink:

For more information read:
http://docs.nethserver.org/en/latest/backup.html

Exclusion

If you wish to exclude a file or directory from data backup, add a line to the file
/etc/backup-data.d/custom.exclude.

For example, to exclude all directories called Download, add this line:

**Download**

To exclude a mail directory called test, add this line:

/var/lib/nethserver/vmail/test/

Same syntax applies to configuration backup. Modification should be done inside the file

/etc/backup-config.d/custom.exclude.

2 Likes