rsbackup(1)
π rsbackup-snapshot-hook π
okay bestie, welcome to the rsbackup-snapshot-hook manual page β part of the rsbackup family, the rsync-based backup utility, and lowkey one of the most underrated little sidekicks in the whole backup saga. it does one job and it does it flawlessly, and honestly? iconic.
β¨ SYNOPSIS β¨
rsbackup-snapshot-hook [OPTIONS]
that's it. that's the whole vibe. no subcommands, no drama, just options. π
πΈ DESCRIPTION πΈ
so here's the tea: rsbackup-snapshot-hook creates and removes LVM snapshots when you set it up as a pre- or post-volume-hook for rsbackup(1). it's the backstage crew of your backup show, fr fr. π
now, it does not just snap everything it can see. snapshots will only be created for volumes that have a corresponding directory inside the snapshot directory. like, a snapshot gets created for the volume root if /var/lib/rsbackup/snapshots/root exists. cute, right? (and if you wanna move that snapshot directory somewhere else, that's what the --snaps option is for, bestie.) π¦
important: those volumes must be stored in a logical volume. no logical volume, no snapshot, no exceptions, iykyk.
leftover snapshots? always unmounted and removed before creation. we do not tolerate stale clutter in this house. β¨
snapshots are only given a fraction of the size of the original volume β not the whole thing, just a lil slice. use the --divisor option if you want to change that ratio. πΈ
after creation, snapshots are fsck'd and mounted. and here's the part where you gotta be careful: if an error occurs in any part of the creation process, the partially created snapshot may be left in place β and it'll ultimately get torn down when the post-volume-hook is run. so like, not a forever problem, but also not nothing. π
π OPTIONS π
--snaps,-sPATH β sets the path to the snapshot directory. the default is/var/lib/rsbackup/snapshots. move it, own it. π«Ά--divisor,-dDIVISOR β sets the snapshot size ratio. the default is5. math girlies rise up. π--help,-hβ displays the usage message. when you're lost, she's there. π--version,-Vβ displays the version string. gotta know which era you're in. β
π SEE ALSO π
go read those too, bestie, they're the main characters. this one's the supporting role that carries the whole plot. π§
π AUTHOR π
Richard Kettlewell <rjk@greenend.org.uk> β thank you for your service, king. π
and that's a wrap on the rsbackup(1) manual page, section 1 of the general commands manual. no version stamp, no date, just the section header holding it down at the bottom of every page like the true icon it is. slay, periodt. π
β¨
π¦ where this page comes from
- debian trixie: rsbackup 10.0-3
- ubuntu questing: rsbackup 10.0-3build2
- ubuntu resolute: rsbackup 10.0-5
- ubuntu stonking: rsbackup 10.0-5
- Copyright (c) 2012, 2014, 2017 Richard Kettlewell
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms