I’m looking for some clarification on the behavior I encountered when doing a snapshot.
Yesterday I set up a repo and made a snapshot of a ~660GB directory, which took almost 4 hours. I then set up a cron job that would make a snapshot of the same folder every night.
Since I haven’t touched the content of the directory, I was expecting a quick snasphot. Yet I was surprised when I checked my cron’s output this morning:
$ export RESTIC_PASSWORD_FILE=/root/restic_pwd.txt
$ restic backup -r /export/backups/photos /export/photos
Files: 68741 new, 0 changed, 0 unmodified
Dirs: 374 new, 0 changed, 0 unmodified
Added to the repo: 752 B
processed 68741 files, 665.526 GiB in 1:37:14
snapshot 5bfc49f2 saved
This raised a few questions:
- Why did it marked every files as new instead of unmodified?
- It seems it spent 1h37 scanning the entire folder for changes, is there a way to speed up the process?
Edit: forgot to specify the version I’m running.
axel@helios64:~$ restic version
restic 0.10.0 compiled with go1.15.2 on linux/arm64