digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.69k stars 122 forks source link

feature request: resume mode if there is a recent enough snapshot already #198

Open ian-kelling opened 6 years ago

ian-kelling commented 6 years ago

I'm wondering how how the maintainer feels about having this in btrbk, I'm interested in writing the code. Maybe a config option like snapshot_create_recent {h,d,w,m,y}.

ian-kelling commented 6 years ago

The main reason I would use this is that I run a script that calls btrbk, but sometimes doesn't complete after btrbk finishes.

digint commented 6 years ago

This sounds like a good idea, but somehow contradicts snapshot_create always which would also have to be set.

Maybe something like snapshot_create recent {h,d,w,m,y}? (The naming is not optimal in my opinion, maybe we can find something less ambiguous than "recent")

ian-kelling commented 6 years ago

Sounds good. Any name you think of is fine with me. When writing the code I'll see if something else comes to mind.

ian-kelling commented 6 years ago

Update: won't have time to work on this anytime soon. Anyone can take this up, or you can feel free to close it.