Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting .inprogress file when rsync reports an error loses savings of incremental backups. #135

Open
cr1901 opened this issue Oct 6, 2018 · 1 comment

Comments

@cr1901
Copy link
Contributor

cr1901 commented Oct 6, 2018

d152279

A number of my backups have been done with a dodgy Internet connection as of late. This means that long-running backups will sometimes fail due to the remote "hanging up". As of the commit listed above, backups that end when rsync reports an error are treated as successful.

This means rather than continuing a previously in-progress backup, rsync-tmbackup.sh will think that an incomplete backup is in fact the latest backup and use that as the rsync --link-dest. Because link-dest was a failed, incomplete backup, this results in a large number of files being transferred redundantly to the destination that would otherwise be replaced with a hard-link to the last time these files were changed.

I would prefer that an incomplete backup still be considered .inprogress. Subsequent attempts to do a backup will use less bandwidth as more and more files are considered to match. Eventually, my rsync backups will be completed even over a dodgy connection, while still having the space savings on an incremental backup :).

@fthiery
Copy link

fthiery commented Apr 29, 2020

Seems related to #64 ; in #209 such errors can be detected, and the resulting backup would not be considered successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants