rsbackup.cron(1)

πŸ“¦
version 10.0 Β· 2 versions
  • 10.0 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 6.0 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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-run option straight through to rsbackup. it's the "what would happen if I did the thing" era. lowkey obsessed with a preview. πŸ‘‘
  • --verbose, -v β€” shows you the rsbackup command 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 run rsbackup --backup. default is hourly.
    • 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 is daily.
  • email β€” sets the destination address for the email report.
  • prune β€” sets how often old backups get pruned. default is daily.
  • prune_incomplete β€” sets how often incomplete backups get pruned. default is dweekly.

πŸ’œ 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: that report setting is only effective if email is not "". so don't set email to empty and then wonder why no report showed up. 😭
also: the comments say prune and prune_incomplete take never too β€” and remember to quote correctly if you're putting nice and/or ionice in nicely. 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