Skip to content

restore doesn't preserve directory mtimes with "backup on restore" option #1007

@protist

Description

@protist

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions