#190 Issue closed: EXCLUDE_BACKUP entries ignored

pavoldomin opened issue at 2013-01-25 14:06:

I define NETFS backup and set

EXCLUDE_BACKUP=( fs:/depot fs:/backup fs:/tmp fs:/var/crash fs:/usr/sap fs:/oracle fs:/sapdb )

But excludes are ignored, everything under vg defined in "ONLY_INCLUDE_VG" just goes to tarball.

tar is called like

tar --warning=no-xdev --sparse --block-number --totals --verbose --no-wildcards-match-slash --one-file-system --ignore-failed-read --gzip -X /tmp/rear.dOQ0LSN2sSRgxUa/tmp/backup-exclude.txt -C / -c -f /tmp/rear.dOQ0LSN2sSRgxUa/outputfs/eahlx01/backup.tar.gz / /boot /home /opt /oracle /tmp /usr /usr/sap /var /var/log /var/opt /depot /var/crash /var/log/rear/rear-eahlx01.log

and exclude file only lists

#cat /tmp/rear.dOQ0LSN2sSRgxUa/tmp/backup-exclude.txt
/tmp/*
/dev/shm/*

confs & logs here:
https://gist.github.com/b75f37ecd7c7de4e7156

jhoekx commented at 2013-01-25 15:13:

If that commit didn't fix it, please reopen.

You were also trying to exclude lvmvol:/dev/vg00/lv_depot. We should document the syntax better. If you had used lvmvol:/dev/mapper/vg00-lv_depot at least /depot would have been excluded.

pavoldomin commented at 2013-01-28 12:21:

Thanks, the fix works fine.
I added that lvmvol: as I got impression from the code, that only underlying devs are treated in EXCLUDE_BACKUP, but as it did not work either, have just opened issue without further searching.

Now I know, /dev/mapper/ path to lvol device should have been used..


[Export of Github issue for rear/rear.]