| 6 May 2024 |
hexa | just hack your own tool | 17:13:38 |
@linus:schreibt.jetzt | In reply to @raitobezarius:matrix.org i don't remember if you can mount snapshots well you can bind mount it, right? | 17:13:49 |
raitobezarius | or just add the feature to the bcachefs CLI | 17:14:06 |
raitobezarius | it's possible there's missing kernel APIs too | 17:14:13 |
raitobezarius | In reply to @linus:schreibt.jetzt well you can bind mount it, right? yes | 17:14:29 |
raitobezarius | i guess you could do bcachefs subvolume snapshot $directory /.snapshots/$date/$theme | 17:14:47 |
K900 | In reply to @raitobezarius:matrix.org i think this is a good time to get started on userspace CLI dev in bcachefs K900 I do not want to be nerdsniped | 17:14:52 |
K900 | I want to have backups | 17:14:54 |
raitobezarius | and mount bind this whether you want | 17:14:54 |
raitobezarius | * and mount bind this wherever you want | 17:15:03 |
raitobezarius | Linux Hackerman: can you link your nifty tool again? | 17:15:14 |
raitobezarius | I think this is relevant to the discussion | 17:15:19 |
raitobezarius | (for snapshots) | 17:15:21 |
@linus:schreibt.jetzt | this one? https://github.com/lheckemann/prune-rs | 17:17:15 |
raitobezarius | yes | 17:18:34 |
raitobezarius | this is bcachefs official pruning tool | 17:18:54 |
K900 | I don't actually intend to keep any snapshots on the box being backed up | 17:18:58 |
K900 | I just need snapshots to get an atomic view of rocksdb | 17:19:16 |
K900 | So my backup plan was snapshot, borg, yeet snapshot | 17:19:36 |
K900 | * So my backup plan was snapshot, borg snapshot, yeet snapshot | 17:19:45 |
raitobezarius | then bcachefs subvolume snapshot just work | 17:19:54 |
K900 | Or maybe I should look into restic | 17:20:04 |
K900 | But that just changes the setup to snapshot, restic snapshot, yeet snapshot | 17:20:33 |
K900 | Oh no | 17:23:10 |
K900 | Hades 2 is out | 17:23:14 |
K900 | I guess I'll have to revisit the backups situation in a month | 17:23:25 |
ElvishJerricco | In reply to @linus:schreibt.jetzt this one? https://github.com/lheckemann/prune-rs I made something like this a long time ago except I had this weird obsession with making it a logarithmic thing instead of a date based thing. The idea is that you get the same benefits of exponential decay, but the regularity of the snapshot creation doesn't meaningfully impact anything: https://github.com/ElvishJerricco/zlogshot | 17:31:54 |
ElvishJerricco | i.e. you can create a big burst of snapshots one day and it won't make a big difference in your backup history. You can also leave your computer off for like a year and you won't find it pruning a year's worth of stuff when it comes back up | 17:32:32 |
@linus:schreibt.jetzt | yeah I saw that and thought "totally cool, I should use it" and then when the time came to use it I couldn't find it anymore :D | 17:32:35 |
raitobezarius | :D | 17:32:48 |