rsbackup.cron(1)
β¨ rsbackup.cron β the group chat's fave little cron script β¨
okay so first things first bestie: this page is rsbackup.cron from the General Commands Manual, section 1. yes the whole thing is literally just "cron script for rsbackup" and honestly? iconic. slay. π
πΈ SYNOPSIS πΈ
rsbackup.cron [OPTIONS] FREQUENCY
π¦ DESCRIPTION π¦
so rsbackup.cron is the lil guy you get cron to call so your backups, your pruning and your reporting all just... happen. automatically. no cap. no you sitting there at 3am running stuff by hand. she's giving main character energy for your filesystem fr fr. π
and FREQUENCY? that one is not optional, bestie. it has to be exactly one of hourly, daily, weekly or monthly β and it has to match up with how often you're actually invoking it. yes, it's a vibe check on your own cron schedule. π
β¨ OPTIONS β¨
--dry-run,-nβ passes the--dry-runoption straight through torsbackup. it's the "what would happen if I did the thing" era. lowkey obsessed with a preview. π--verbose,-vβ shows you thersbackupcommand before it runs it. so you can be nosy about exactly what's about to go down.--help,-hβ prints a usage message and then peaces out. bye! π--version,-Vβ displays the version string. flex the numbers bestie. β
π CONFIGURATION π
all the config lives in /etc/rsbackup/defaults. it's a shell script fragment, so it's just vibes and variable assignments, and you should define these bad boys in it:
backupβ sets how often to attempt backups, aka how often to runrsbackup --backup. default ishourly.- and listen: use backup policies if you want full control over the actual backup frequency. that's the real fine-grained slay.
reportβ sets how often to send an email report. default isdaily.emailβ sets the destination address for the email report.pruneβ sets how often old backups get pruned. default isdaily.prune_incompleteβ sets how often incomplete backups get pruned. default isdweekly.
π Frequencies π
the possible frequencies are hourly, daily, weekly or monthly. that's the whole menu, bestie.
π Example π
here's the whole thing looking pretty, copy it and make it yours:
#
# Set backup=hourly|daily|weekly|monthly to control frequency of
# backup attempts. (Use backup policies for fine-grained control over
# when backups happen.)
#
backup=hourly
#
# Set report=hourly|daily|weekly|monthly to control frequency of
# email reports. (Hourly is probably a bit much!) Only effective
# if email is not "".
#
report=daily
#
# Set email=ADDRESS to have the report emailed to that address.
#
email=root
#
# Set prune=hourly|daily|weekly|monthly|never to control frequency of
# automated pruning of old backups
#
prune=daily
#
# Set prune_incomplete=hourly|daily|weekly|monthly|never to control
# frequency of automated pruning of incomplete backups
#
prune_incomplete=weekly
#
# Prefix to the rsbackup command
# Use 'nice' and/or 'ionice' here. Remember to quote correctly.
#
nicely=
quick heads up from the original, bestie: thatreportsetting is only effective if"". so don't set
also: the comments saypruneandprune_incompletetakenevertoo β and remember to quote correctly if you're puttingniceand/orioniceinnicely. don't get cute with your quoting and then act surprised. π
πΈ SEE ALSO πΈ
rsbackup(1), rsbackup-mount(1), rsbackup(5).
π«Ά AUTHOR π«Ά
Richard Kettlewell <rjk@greenend.org.uk> β the legend who wrote all this. iykyk. π
and that's the whole page, bestie β rsbackup.cron, General Commands Manual, section 1, and yes the footer is just rsbackup.cron(1) all over again because she contains multitudes. go forth and let cron do the heavy lifting. periodt. πβ¨π¦
π¦ where this page comes from
- debian bookworm: rsbackup 8.0-1
- debian trixie: rsbackup 10.0-3
- ubuntu noble: rsbackup 8.0-1build3
- ubuntu questing: rsbackup 10.0-3build2
- ubuntu resolute: rsbackup 10.0-5
- ubuntu stonking: rsbackup 10.0-5
- Copyright (c) 2011 Richard Kettlewell
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms