I tried to exclude the directory /media/pi from backup as I have problems with ACLS and Synology NAS a backup target.
So I edited the following line at /usr/local/etc/raspiBackup.conf and added the directory
DEFAULT_EXCLUDE_LIST="/media/pi"
This did not work. I had to use the syntax
DEFAULT_EXCLUDE_LIST="--exclude=/media/pi"
to make it work.
I'm not sure wether this is the desired behavior or a bug. So I created this issue as question. If no change is desired (i.e. cause of compatibility) maybe a example with the correct syntax could be added to the config file.
Extract from logfile when the error occures following:
20211206-174005 DBG 2273: --> executeCmd Command: rsync --exclude="/backup" --exclude="/home/@user@/raspiBackup.log" --exclude="/home/@user@/raspiBackup.msg" --exclude='.gvfs' --exclude=/proc/* --exclude=/lost+found/* --exclude=/sys/* --exclude=/dev/* --exclude=/boot/* --exclude=/tmp/* --exclude=/run/* --exclude=/@HOSTNAME@-backup.img --exclude=/@HOSTNAME@-backup.tmg --exclude=/@HOSTNAME@-backup.sfdisk --exclude=/@HOSTNAME@-backup.mbr --exclude=/raspiBackup.log --exclude=/raspiBackup.msg /media/pi --numeric-ids -aHAx --delete / "/backup/@hostname@/@hostname@-rsync-backup-20211206-173935"
Sorry, maybe I should have posted in english:
I tried to exclude the directory /media/pi from backup as I have problems with ACLS and Synology NAS a backup target.
So I edited the following line at /usr/local/etc/raspiBackup.conf and added the directory
DEFAULT_EXCLUDE_LIST="/media/pi"
This did not work. I had to use the syntax
DEFAULT_EXCLUDE_LIST="--exclude=/media/pi"
to make it work.
I'm not sure wether this is the desired behavior or a bug. So I created this issue as question. If no change is desired (i.e. cause of compatibility) maybe a example with the correct syntax could be added to the config file.
Extract from logfile when the error occures following:
20211206-174005 DBG 2273: --> executeCmd Command: rsync --exclude="/backup" --exclude="/home/@user@/raspiBackup.log" --exclude="/home/@user@/raspiBackup.msg" --exclude='.gvfs' --exclude=/proc/* --exclude=/lost+found/* --exclude=/sys/* --exclude=/dev/* --exclude=/boot/* --exclude=/tmp/* --exclude=/run/* --exclude=/@HOSTNAME@-backup.img --exclude=/@HOSTNAME@-backup.tmg --exclude=/@HOSTNAME@-backup.sfdisk --exclude=/@HOSTNAME@-backup.mbr --exclude=/raspiBackup.log --exclude=/raspiBackup.msg /media/pi --numeric-ids -aHAx --delete / "/backup/@hostname@/@hostname@-rsync-backup-20211206-173935"
Sorry, maybe I should have posted in english: