Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rectic backup of metadata changes only is not performed
root@aldem-vm:/tmp# mkdir rtest
root@aldem-vm:/tmp# cd rtest
root@aldem-vm:/tmp/rtest# echo test > test
root@aldem-vm:/tmp/rtest# restic backup /tmp/rtest
repository 063026c0 opened successfully, password is correct
created new cache in /root/.cache/restic
found 3 old cache directories in /root/.cache/restic, pass --cleanup-cache to remove them
Files: 1 new, 0 changed, 0 unmodified
Dirs: 1 new, 0 changed, 0 unmodified
Added to the repo: 736 B
processed 1 files, 5 B in 0:00
snapshot 7df01dd2 saved
root@aldem-vm:/tmp/rtest# chown aldem test
root@aldem-vm:/tmp/rtest# restic backup /tmp/rtest
repository 063026c0 opened successfully, password is correct
found 3 old cache directories in /root/.cache/restic, pass --cleanup-cache to remove them
Files: 0 new, 0 changed, 1 unmodified
Dirs: 0 new, 0 changed, 1 unmodified
Added to the repo: 0 B
processed 1 files, 5 B in 0:00
snapshot 229f9b44 saved
root@aldem-vm:/tmp/rtest# ls -l
total 4
-rw-r--r-- 1 aldem root 5 Apr 23 18:22 test
root@aldem-vm:/tmp/rtest# restic snapshots
repository 063026c0 opened successfully, password is correct
found 3 old cache directories in /root/.cache/restic, pass --cleanup-cache to remove them
ID Time Host Tags Paths
-----------------------------------------------------------------
7df01dd2 2019-04-23 18:22:20 aldem-vm /tmp/rtest
229f9b44 2019-04-23 18:22:59 aldem-vm /tmp/rtest
-----------------------------------------------------------------
2 snapshots
root@aldem-vm:/tmp/rtest# rm test
root@aldem-vm:/tmp/rtest# restic restore 229f9b44 -t /
repository 063026c0 opened successfully, password is correct
found 3 old cache directories in /root/.cache/restic, pass --cleanup-cache to remove them
restoring <Snapshot 229f9b44 of [/tmp/rtest] at 2019-04-23 18:22:59.947619346 +0200 CEST by root@aldem-vm> to /
root@aldem-vm:/tmp/rtest# ls -l test
-rw-r--r-- 1 root root 5 Apr 23 18:22 test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.