
http://en.wikipedia.org/wiki/Backup_rotation_scheme Does anyone know of a good script for managing btrfs snapshots for different frequencies of backups? Something like grandfather-father-son or tower of hanoi would do. Here's the long form: To cover the fumble-fingers case of backups (as opposed to hardware failure/theft) I want to have automatically managed btrfs snapshots. I was thinking of something like every 15 minutes for the last 24 hours, every 8 hours for the previous 30 days, and every day for the 100 days before that. Note that this schedule won't necessarily be the best for me (every 15 minutes for the last hour would do for me) but I'm dealing with users who won't necessarily call me quickly when they do the wrong thing and it's probably best to use the same configuration for everyone. Anyway this will end up being something like 96+90+100==286 snapshots at any time. I don't expect btrfs to have any problem handling this as the systems in question will mostly be used for Chromium, LibreOffice, and email. I expect that there will be some performance overhead and a definite space overhead, but nothing that a 120G SSD with a single active user can't cope with. The problem for me is managing it. I'm sure that I could write my own scripts to do this, but I'm concerned about bugs. I'd rather use someone else's script that has been tested and works at least some of the time. ;) -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/