diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-12-02 23:18:42 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-12-02 23:18:42 +0100 |
commit | 8f29617a6873798f675bb0944929ee3813a26eeb (patch) | |
tree | 876f66ef1546bc31fede8c85c1c3c178d55fa12b /lib/App | |
parent | 028f5e7f7580f2fc597e96caaea583f3a7978b63 (diff) | |
download | App-BorgRestore-8f29617a6873798f675bb0944929ee3813a26eeb.tar.gz App-BorgRestore-8f29617a6873798f675bb0944929ee3813a26eeb.tar.xz |
Properly document removal of prefixes via @backup_prefixes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App')
-rw-r--r-- | lib/App/BorgRestore/Settings.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/App/BorgRestore/Settings.pm b/lib/App/BorgRestore/Settings.pm index a581dab..aef01a3 100644 --- a/lib/App/BorgRestore/Settings.pm +++ b/lib/App/BorgRestore/Settings.pm @@ -53,9 +53,9 @@ This defaults to "C<$XDG_CACHE_HOME>/borg-restore.pl". It contains the lookup da =item C<@backup_prefixes> -This is an array of prefixes that need to be added when looking up a file in the -backup archives. If you use filesystem snapshots and the snapshot for /home is -located at /mnt/snapshots/home, you have to add the following: +This is an array of prefixes that need to be added or removed when looking up a +file in the backup archives. If you use filesystem snapshots and the snapshot +for /home is located at /mnt/snapshots/home, you have to add the following: # In the backup archives, /home has the path /mnt/snapshots/home {regex => "^/home/", replacement => "mnt/snapshots/home/"}, @@ -66,6 +66,11 @@ same string. The first regex that matches for a given file is used. This setting only affects lookups, it does not affect the creation of the database with --update-database. +If you create a backup of /home/user only, you will need to use the following: + +# In the backup archives, /home/user/foo has the path foo +{regex => "^/home/user", replacement => ""}, + =item C<$sqlite_cache_size> Default: 102400 @@ -83,7 +88,7 @@ the disk too much. @backup_prefixes = ( {regex => "^/home/", replacement => "mnt/snapshots/home/"}, # /boot is not snapshotted - {regex => "^/boot", replacement => ""}, + {regex => "^/boot/", replacement => "boot"}, {regex => "^/", replacement => "mnt/snapshots/root/"}, ); $sqlite_cache_size = 2097152; |