jborg / attic

Deduplicating backup program
Other
1.11k stars 104 forks source link

Let attic know it should wait before beginning #383

Open foozmeat opened 8 years ago

foozmeat commented 8 years ago

Our backup scheme is such that individual machines run attic to back up their files to a common NFS repo. I then want to back up the entire collection of backups offsite using tarsnap. Unfortunately, occasionally the attic backup kicks off after a tarnsnap backup has started. Often this causes tarsnap to error.

What I would like is a feature where if attic detects a certain file is will wait to begin it's back up until that file is gone. There would need to be a timeout on this behavior obviously. This would let be get reliable offsite backups while maintaining hourly backups via attic.

As a workaround I can wrap attic to create the behavior I want.

dragetd commented 8 years ago

Basically it would be an additional lock mechanism. And locking has some gotchas. It would be far easier if this is handled in some external logic - even better by tarsnap to only start attic when it is not working. :-)

lewisgoddard commented 8 years ago

Why not use Attic to push to an external server, effectively providing the same thing?