Merge pull request #1781 from McKael/fix_restick_backup_rejectByDevice

Fix restic backup --one-file-system /
This commit is contained in:
Alexander Neumann 2018-05-16 21:58:58 +02:00
commit ecfe59235e

View file

@ -229,11 +229,14 @@ func rejectByDevice(samples []string) (RejectFunc, error) {
panic(err) panic(err)
} }
for dir := item; dir != filepath.Dir(dir); dir = filepath.Dir(dir) { for dir := item; ; dir = filepath.Dir(dir) {
debug.Log("item %v, test dir %v", item, dir) debug.Log("item %v, test dir %v", item, dir)
allowedID, ok := allowed[dir] allowedID, ok := allowed[dir]
if !ok { if !ok {
if dir == filepath.Dir(dir) {
break
}
continue continue
} }