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 list does not match when using snapshot feature #17

Open
blueyed opened this issue Feb 19, 2015 · 3 comments
Open

Exclude list does not match when using snapshot feature #17

blueyed opened this issue Feb 19, 2015 · 3 comments

Comments

@blueyed
Copy link
Contributor

blueyed commented Feb 19, 2015

When using bup-cron's snapshot feature (-s LVM), bup index gets called like this (via bup-cron -s LVM /):

bup index --exclude-rx-from=/etc/backup-exclude-bup.txt --one-file-system /media/bup/vg0-rootlv

The exclude list however has paths relative to / tailored to / and therefore don't match the mounted location (/media/bup/vg0-rootlv).

@anarcat
Copy link
Owner

anarcat commented Feb 19, 2015

how would you expect this to be fixed? should we rewrite the exclude file?

@blueyed
Copy link
Contributor Author

blueyed commented Feb 19, 2015

I'm not sure. Probably some new option for bup would be required to adjust the root prefix for excludes? Something like the --graft option from bup-save, but for bup-index?

Rewriting the excludes might be too fragile, although it might be as easy as replacing ^\^ with \^${new_prefix}.

@anarcat
Copy link
Owner

anarcat commented Feb 19, 2015

it would be the solution yeah, but it seems pretty hackish.

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