Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXCLUDE_BACKUP entries ignored #190

Closed
pavoldomin opened this issue Jan 25, 2013 · 2 comments
Closed

EXCLUDE_BACKUP entries ignored #190

pavoldomin opened this issue Jan 25, 2013 · 2 comments

Comments

@pavoldomin
Copy link
Contributor

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 jhoekx closed this as completed in d13f7be Jan 25, 2013
@jhoekx
Copy link
Contributor

jhoekx commented Jan 25, 2013

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
Copy link
Contributor Author

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..

dagwieers pushed a commit to dagwieers/rear that referenced this issue Jun 7, 2013
Previously they were only excluded when one of the underlying devices
was in the EXCLUDE_BACKUP array.

This should fix rear#190.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants