Skip to content

Add to backup only after rsync finished successfully #37

@Lex-2008

Description

@Lex-2008

Currently, we run find and add to backup whatever state "current" directory is after rsync run finished. No matter if it was successful or partial. It can lead to an issue like this:

if you have edited few files which depend on each other (for example shell scripts which call each other), interrupted due to timeout rsync might have copied only one of them. In this case, if your later restore backup at this time - you end up with a broken system (old version of one file, new version of another).

Solution is to rsync to a temporary dir and ... that one to "current" one. Note that inodes, also of directories, must not change!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions