!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

601 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org164 Servers

Load older messages


SenderMessageTime
6 May 2024
@hexa:lossy.networkhexa just hack your own tool 17:13:38
@linus:schreibt.jetzt@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:matrix.orgraitobezariusor just add the feature to the bcachefs CLI17:14:06
@raitobezarius:matrix.orgraitobezariusit's possible there's missing kernel APIs too17:14:13
@raitobezarius:matrix.orgraitobezarius
In reply to @linus:schreibt.jetzt
well you can bind mount it, right?
yes
17:14:29
@raitobezarius:matrix.orgraitobezariusi guess you could do bcachefs subvolume snapshot $directory /.snapshots/$date/$theme17:14:47
@k900:0upti.meK900
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:0upti.meK900I want to have backups17:14:54
@raitobezarius:matrix.orgraitobezariusand mount bind this whether you want17:14:54
@raitobezarius:matrix.orgraitobezarius * and mount bind this wherever you want17:15:03
@raitobezarius:matrix.orgraitobezarius Linux Hackerman: can you link your nifty tool again? 17:15:14
@raitobezarius:matrix.orgraitobezariusI think this is relevant to the discussion17:15:19
@raitobezarius:matrix.orgraitobezarius(for snapshots)17:15:21
@linus:schreibt.jetzt@linus:schreibt.jetztthis one? https://github.com/lheckemann/prune-rs17:17:15
@raitobezarius:matrix.orgraitobezariusyes17:18:34
@raitobezarius:matrix.orgraitobezariusthis is bcachefs official pruning tool17:18:54
@k900:0upti.meK900I don't actually intend to keep any snapshots on the box being backed up17:18:58
@k900:0upti.meK900I just need snapshots to get an atomic view of rocksdb17:19:16
@k900:0upti.meK900So my backup plan was snapshot, borg, yeet snapshot17:19:36
@k900:0upti.meK900 * So my backup plan was snapshot, borg snapshot, yeet snapshot17:19:45
@raitobezarius:matrix.orgraitobezariusthen bcachefs subvolume snapshot just work17:19:54
@k900:0upti.meK900Or maybe I should look into restic17:20:04
@k900:0upti.meK900But that just changes the setup to snapshot, restic snapshot, yeet snapshot17:20:33
@k900:0upti.meK900Oh no17:23:10
@k900:0upti.meK900Hades 2 is out17:23:14
@k900:0upti.meK900I guess I'll have to revisit the backups situation in a month17:23:25
@elvishjerricco:matrix.orgElvishJerricco
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:matrix.orgElvishJerriccoi.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 up17:32:32
@linus:schreibt.jetzt@linus:schreibt.jetztyeah 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 :D17:32:35
@raitobezarius:matrix.orgraitobezarius:D17:32:48

Show newer messages


Back to Room ListRoom Version: 10