anarcat / bup-cron

mirror of the bup-cron repository, may be out of date while i figure out github mirror things
https://gitlab.com/anarcat/bup-cron
GNU Affero General Public License v3.0
22 stars 4 forks source link

Exclude list does not match when using snapshot feature #17

Open blueyed opened 9 years ago

blueyed commented 9 years ago

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 commented 9 years ago

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

blueyed commented 9 years ago

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 commented 9 years ago

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