You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ sh -x DOIT.sh
+ pwd
+ export RESTIC_REPOSITORY=/home/wscott/restic.bug/backups.restic
+ export RESTIC_PASSWORD=ca19e820beabb3b296ef21b9d6a34778
+ rm -rf /home/wscott/restic.bug/backups.restic dir1 dir2 restore
+ restic init
created restic backend 9be29f04e9 at /home/wscott/restic.bug/backups.restic
Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is
irrecoverably lost.
+ mkdir -p dir1/dir3
+ mkdir -p dir2/dir3
+ mkdir -p dir2/dir4
+ echo hi
+ echo bye
+ echo baz
+ restic backup dir1/dir3 dir2/dir3 dir2/dir4
scan [/home/wscott/restic.bug/dir1/dir3 /home/wscott/restic.bug/dir2/dir3 /home/wscott/restic.bug/dir2/dir4]
scanned 3 directories, 3 files in 0:00
[0:00] 100.00% 0B/s 11B / 11B 6 / 6 items 0 errors ETA 0:00
duration: 0:00, 0.00MiB/s
snapshot d42c85cb saved
+ restic snapshots
ID Date Host Directory
----------------------------------------------------------------------
d42c85cb 2016-08-26 15:10:25 x99 /home/wscott/restic.bug/dir1/dir3
/home/wscott/restic.bug/dir2/dir3
/home/wscott/restic.bug/dir2/dir4
+ mkdir restore
+ restic restore latest -t restore
restoring <Snapshot d42c85cb of [/home/wscott/restic.bug/dir1/dir3 /home/wscott/restic.bug/dir2/dir3 /home/wscott/restic.bug/dir2/dir4] at 2016-08-26 15:10:25.29578299 -0400 EDT by wscott@x99> to restore
+ ls -R restore
restore:
dir3 dir4
restore/dir3:
file4
restore/dir4:
file6
Expected result
Restic appears to try and remove extra layers of hierarchy from pathnames, but sometimes this fails.
For example I tried running restic backup /home/wscott /space/wscott but the resulting snapshot only contained 'wscott' that matched /home.
In the above example 'file5' is missing from the restore. It is inconsistent. Sometimes file4 is missing.
The text was updated successfully, but these errors were encountered:
Output of
restic version
Testcase
Run this script in an empty directory
Output
Expected result
Restic appears to try and remove extra layers of hierarchy from pathnames, but sometimes this fails.
For example I tried running
restic backup /home/wscott /space/wscott
but the resulting snapshot only contained 'wscott' that matched /home.In the above example 'file5' is missing from the restore. It is inconsistent. Sometimes file4 is missing.
The text was updated successfully, but these errors were encountered: