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

Unsuccessful backups should be handled differently #2

Open
dagwieers opened this issue Aug 2, 2012 · 2 comments
Open

Unsuccessful backups should be handled differently #2

dagwieers opened this issue Aug 2, 2012 · 2 comments

Comments

@dagwieers
Copy link

If a backup fails for whatever reason, the next backup starts with a broken copy, which basically means it may restart copying even if an older backup would be a better fit.

I have had various reasons why an rbme backup failed:

  • system was shut down before it finished
  • disk full conditions
  • recursive download ad infinitum

And the next sync would not pick up the previous copy. So if aware of the situation I have to go and remove the broken copy first. However you cannot easily find which copies are broken, because a tree is huge to compare (especially on slower/network disks).

I would prefer if rbme would move aside the unsuccessful backup (rename it .fail or something) so that rsync will not consider it for using the next backup.

@schlomo
Copy link
Owner

schlomo commented Aug 3, 2012

Yes, indeed. I just removed the directories of an aborted backup. One solution would be that after a succesful sync a marker file gets written. If the marker is missing, then the probably broken backup dir will be erased first thing when rbme starts. That way we could have this feature per-host.

@dagwieers
Copy link
Author

Yes, that would work.

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