Hi all,
I’m restoring some data with restic and the “stats”, “ls” and “restore” output return me different information.
Version:
restic version
restic 0.9.4 compiled with go1.12.1 on linux/amd64
Stats:
restic -r s3:http://ip:9000/bucket stats e6fbe1f2
repository 5e45e34f opened successfully, password is correct
scanning...
Stats for e6fbe1f2 in restore-size mode:
Total File Count: 4104
Total Size: 38.899 GiB
Restore:
restic -r s3:http://ip:9000/bucket restore -t /tmp/restic_restore e6fbe1f2
repository 5e45e34f opened successfully, password is correct
[9:35] 15710 files 40.542 GiB, total 4091 files 38.899 GiB, 0 errors ETA 67766885:12:02
??? What? Keep calm and wait.
After some time…
restic -r s3:http://ip:9000/bucket restore -t /tmp/restic_restore e6fbe1f2
repository 5e45e34f opened successfully, password is correct
Files: 17450 new
Dirs: 13 new
Errors: 0
??? What? Keep calm and check the fs:
root@server:/tmp/restic_restore# find | wc -l
4105
Ok, better. Now try some diffs:
restic -r s3:http://ip:9000/bucket ls e6fbe1f2 | sort > ~/ls_bucket_e6fbe1f2
root@server:/tmp/restic_restore# find /tmp/restic_restore/ | sed '/a\/tmp\/restic_restore//g' | sort > ~/ls_bucket_e6fbe1f2_restore
diff ls_cmsvsql01-p_e6fbe1f2*
and return me 0 diffs
This sound me a bug.
Thanks