backintime
backintime copied to clipboard
restore doesn't preserve directory mtimes with "backup on restore" option
I just did a restore
, and I realised that modification times of directories were not preserved. I checked the rsync
command, and I realised that it is because backintime uses the --backup
flag when restoring. From man rsync
:
-b, --backup ... Note that if you don’t specify --backup-dir, (1) the --omit-dir-times option will be forced on
I'm not sure why that is; it doesn't make sense to me. In any case, my expectation was that backintime would preserve all modification times. Obviously I can see the merit of using --backup
in general, but when restoring directories, I'd rather manually rsync -a
instead, which is less convenient, but preserves all modification times.