2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-02 00:50:48 +00:00

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