I made some snapshots of multiple repositories of a system. When restoring a snapshot (to a diferrent directory) I compared the content and found a lot of files missing. I’m trying to list every step, hoping you spot some obvious mistake.
root@m1:/etc# cat .duplicacy/preferences
[
{
“name”: “default”,
“id”: “m1-etc”,
“storage”: “sftp://user@backend/duplicacy”,
“encrypted”: true,
“no_backup”: false,
“no_restore”: false,
“no_save_password”: false,
“keys”: null
}
]
root@m1:/etc# l .duplicacy/
total 12K
drwxr-----. 3 root root 4.0K Jul 29 12:18 cache
-rw-------. 1 root root 408 Jul 29 12:17 known_hosts
-rw-r-----. 1 root root 274 Jul 29 12:17 preferences
root@m1:/etc# mkdir /tmp/restore && cd /tmp/restore
root@m1:/tmp/restore# duplicacy init -e m1-etc sftp://user@backend/duplicacy
The storage ‘sftp://user@backend/duplicacy’ has already been initialized
Compression level: 100
Average chunk size: 4194304
Maximum chunk size: 16777216
Minimum chunk size: 1048576
Chunk seed: f6c3a8afaf216db6deae075b16017688b83b68729c4ddf9c7629c82671eb8ae4
/tmp/restore will be backed up to sftp://user@backend/duplicacy with id m1-etc
root@m1:/tmp/restore# duplicacy list
Storage set to sftp://user@backend/duplicacy
Snapshot m1-etc revision 1 created at 2017-07-29 12:18 -hash
Snapshot m1-etc revision 2 created at 2017-07-29 14:30
Snapshot m1-etc revision 3 created at 2017-07-29 16:30
root@esus:/tmp/restore# duplicacy restore -r 3
Storage set to sftp://user@backend/duplicacy/duplicacy
Restoring /tmp/restore to revision 3
Downloaded sysconfig/run-parts (0)
Downloaded .updated (163)
Downloaded motd (0)
Downloaded environment (0)
Downloaded exports (0)
[…]
Restored /tmp/restore to revision 3
Total running time: 00:00:02
root@m1:/tmp/restore# diff -r ./ /etc/
Only in /etc/: binfmt.d
Only in /etc/: chkconfig.d
Only in /etc/: cron.monthly
Only in /etc/: cron.weekly
Only in /etc/dbus-1: session.d
Only in /etc/: dnsmasq.d
Only in /etc/firewalld: icmptypes
Only in /etc/firewalld: services
[…]
PS: This does happen on multiple systems!