rsbackup(5)
okay so bestie, welcome to the rsbackup(5) manual page π this is the File Formats Manual, and we're gonna vibe through it together. no cap.
πΈ NAME πΈ
/etc/rsbackup/config β configuration for rsync-based backup utility β¨
π DESCRIPTION π
This describes the configuration file syntax for rsbackup(1). π«Ά
β¨ SYNTAX β¨
π Line Splitting π
Lines are split into space-separated words. To include spaces in a word, quote it using "double quotes". Quotes and backslashes within quoted strings are escaped with backslashes (and cannot appear in an unquoted word). π
π§ Comments and Blank Lines π§
Anything after the first (unquoted) # to appear on a line is ignored.
Lines with no words on (whether they are completely empty, or contain just spaces, or have a # before any non-space characters) are ignored (and do not have to follow the indentation rules below). π
π¦ Directives and Stanzas π¦
The first word of a line is called a directive. The remaining words, if any, form its arguments.
A stanza consists of a directive introducing the stanza followed by zero or more directives within the stanza. These must be indented, consistently, relative to the directive that introduced the stanza.
A configuration file contains global directives (which must not be indented) and one or more host stanzas. Each host stanza contains one or more volume stanzas.
Global directives may appear after host stanzas (and host directives after volume stanzas) provided they are indented correctly. β¨
β³ Time Intervals β³
A time interval, denoted INTERVAL below, can be either a raw integer, or an integer with the suffix "s", "m", "h" or "d" for seconds, minutes, hours or days respectively.
If there is no suffix then the interpretation is contextual. This behavior is deprecated; suffixes will become mandatory in future. π
π GLOBAL DIRECTIVES π
Global directives control some general aspect of the program. π
database PATHβ The path to the backup database. By default this isLOGS/backups.dbwhereLOGSis controlled by thelogsdirective below. ποΈdevice DEVICEβ Names a device. This can be used multiple times. The store must have a file calledSTORE/device-idwhich contains a known device name. Backups will only be made to known devices. β¨
When a device is lost or destroyed, remove its device entry and use the --prune-unknown option to delete records of backups on it. π
Device names may contain letters, digits, dots and underscores. π
include PATHβ Include another file as part of the configuration. IfPATHis a directory then the files within it are included (excluding dotfiles, backup and recovery files). πkeep-prune-logs INTERVALβ The time period to keep records of pruned backups for. The default is 31 days. ποΈlock PATHβ Enable locking. If this directive is present thenPATHwill be used as a lockfile for operations that change anything (--backup,--prune, etc). π
The lock is made by opening PATH and calling flock(2) on it with LOCK_EX. π«Ά
logs PATHβ The directory to store logfiles and backup records. The default is/var/log/backup. πpost-device-hook COMMAND...β A command to execute after all backup and prune operations. This is executed only once per invocation of rsbackup. A backup is still considered to have succeeded even if the post-access hook fails (i.e. exits nonzero). See HOOKS below. πͺpre-device-hook COMMAND...β A command to execute before anything that accesses any backup devices (i.e. backup and prune operations). This is executed only once per invocation of rsbackup and if it fails (i.e. exits nonzero) then rsbackup terminates immediately. See HOOKS below. πprune-timeout INTERVALβ The maximum amount of time to spend pruning, in a single invocation.0means that there is no limit (which is the default). β±οΈ
Note that, if this is directive is used, prune operations timing out are considered to be normal behavior, and the exit status will be 0. Most of the diagnostics relating to timeouts are suppressed unless the -v option is used. π
public true|falseβ If true, backups are public. Normally backups must only be accessible by the calling user. This directive suppresses the check. πstore [--mounted|--no-mounted] PATHβ A path at which a backup device may be mounted. This can be used multiple times. πΎ
With the --mounted option (which is the default), PATH must be a mount point. With --no-mounted it need not be a mount point. π
store-pattern [-mounted|-nomounted] PATTERNβ Aglob(7)pattern matching paths at which a backup device may be mounted. This can be used multiple times. π§©
See the description of store above for the meanings of the options. π
π Report Directives π
These are global directives that affect only the HTML report. π
color-bad COLORβ The color used to represent bad states (no sufficiently recent backup) in the report. See below for the interpretation ofCOLOR. βcolor-good COLORβ The color used to represent good states (a recent backup) in the report. βreport [+] [KEY][:VALUE][?CONDITION] ...β Defines the report contents. The arguments to this directive are a sequence of keys, optionally parameterized by a value and/or a condition. π
If the first argument is a + then the arguments are added to the current configuration; otherwise they replace it. β
The possible keys, with values where appropriate, are:
generatedβ A timestamp stating when the report was generated. π°οΈhistory-graphβ A graphic showing the backups available for each volume. This only works ifrsbackup-graph(1)is installed. πh1:HEADINGh2:HEADINGh3:HEADINGβ Headings at levels 1, 2 and 3. π°logsβ A list of logs of failed backups. πp:PARAGRAPHβ A paragraph of text. πprune-logs[:DAYS]β A list of logs of pruned backups. ποΈDAYSis the number of days of pruning logs to put in the report. The default is 3. π
summaryβ A table summarizing the backups available for each volume. πtitle:TITLEβ The document title. π·οΈwarningsβ A list of warning messages. β οΈ
If a condition is specified then the key is only used if the condition is true. The possible conditions are:
warningsβ True if there are any warnings to display (i.e. if thewarningskey is nonempty). π¨
Within a VALUE the following sequences undergo substitution:
\CHARβ Replaced with the single characterCHAR. π€${VARIABLE}β Replaced with the value of the environment variableVARIABLE, if it is set. π
The following environment variables are set:
RSBACKUP_CTIMEβ The local date and time inctime(3)format. β°RSBACKUP_DATEβ The local date inYYYY-MM-DDformat. π
The default is equivalent to:
report "title:Backup report (${RSBACKUP_DATE})"
report + "h1:Backup report (${RSBACKUP_DATE})"
report + h2:Warnings?warnings warnings
report + "h2:Summary" summary
report + history-graph
report + h2:Logfiles logs
report + "h3:Pruning logs" prune-logs
report + "p:Generated ${RSBACKUP_CTIME}"
sendmail PATHβ The path to the executable to use for sending email. The default is platform-dependent but typically/usr/sbin/sendmail. The executable should support the-t,-oee,-oiand-odboptions. π§stylesheet PATHβ The path to the stylesheet to use in the HTML report. If this is absent then a built-in default stylesheet is used. π¨
π Graph Directives π
These are global directives that affect the output of rsbackup-graph(1). π
color-graph-background COLORβ The background color. See below for the interpretation ofCOLOR. π¨color-graph-foreground COLORβ The foreground color, i.e. for text. βοΈcolor-month-guide COLORβ The color for the vertical month guides. πcolor-host-guide COLORβ The color for the horizontal guides between hosts. π₯οΈcolor-volume-guide COLORβ The color for the horizontal guides between volumes. π½device-color-strategy STRATEGYβ The strategy to use for picking device colors. π¨
A strategy is a name and a sequence of parameters, all of which are optional.
The possible strategies are:
equidistant-value HUE SATURATION MINVALUE MAXVALUEβ Colors are picked with chosen hue and saturation, with values equally spaced within a range. π- The default hue is 0 and the default saturation is 1. The default value range is from 0 to 1. π’
equidistant-hue HUE SATURATION VALUEβ Colors are picked with chosen saturation and value and equally spaced hues, starting fromHUE. π―- The default starting hue is 0 and the default saturation and value are 1. π’
The default strategy is equivalent to:
device-color-strategy equidistant-value 120 0.75
horizontal-padding PIXELSβ The number pixels to place between horizontally adjacent elements. The default is 8. βοΈvertical-padding PIXELSβ The number pixels to place between vertically adjacent elements. The default is 2. βοΈhost-name-font FONTβ The font description used for host names. See below for the interpretation ofFONT. ποΈvolume-name-font FONTβ The font description used for volume names. ποΈdevice-name-font FONTβ The font description used for device names. ποΈtime-label-font FONTβ The font description used for time labels. ποΈgraph-layout [+] PART:COLUMN,ROW[:HV] ...β Defines the graph layout. πΊοΈ
The arguments to this directive are a sequence of graph component specifications of the form PART:COLUMN,ROW[:HV], where:
PARTβ The name of this component. The following parts are recognized:host-labelsβ The host name labels for the graph. This is expected to be in the same row ascontent. π·οΈ
volume-labelsβ the volume name labels for the graph. bestie, this one's expected to sit in the same row ascontent.contentβ the graph content itself. the main character of the whole graph honestly.time-labelsβ the time labels for the graph. expected to be in the same column ascontent.device-keyβ the key that maps device names to colors. πCOLUMNβ the column number for this component.0is the leftmost column.ROWβ the row number for this component.0is the top row.HVβ the (optional) justification specification for this component.Hmay be one of the following:Lβ left justification.Cβ centre justification.Rβ right justification.
and V may be one of the following:
Tβ top justification.Cβ centre justification.Bβ bottom justification.
Parts may be repeated or omitted. (yes, you can absolutely ghost a part if you don't want it, no cap π )
The default layout is equivalent to:
graph-layout host-labels:0,0
graph-layout + volume-labels:1,0
graph-layout + content:2,0
graph-layout + time-labels:2,1
graph-layout + device-key:2,3:RC
π¨ Colors π¨
COLOR may be one of the following:
DECIMALor0xRRGGBBβ an integer value representing an RGB triple. it's most convenient to use hexadecimal, fr fr. for example, black is0x000000, red is0xFF0000, and so on. πrgb RED GREEN BLUEβ three numbers in the range0to1representing red, green and blue components.hsv HUE SATURATION VALUEβHUEchooses between different primary colors and mixtures of them.0represents red,120represents green and240represents blue; intermediate values represent mixed hues.- Normally it would be in the range
0 <= HUE < 360, but values outside this range are mapped into it. SATURATIONis a number in the range0to1and (roughly) represents how colorful the color is.0is a shade of grey and1is maximally colorful.VALUEis a number in the range0to1and represents the brightness of the color.
- Normally it would be in the range
See https://en.wikipedia.org/wiki/HSL_and_HSV for a fuller discussion of these terms. iykyk π§
βοΈ Fonts βοΈ
FONT is a Pango font description. The syntax is "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]" where:
FAMILY-LISTβ a comma-separate list of font families. these necessarily depend on the fonts installed locally, but Pango recognizesmonospace,sansandserifas generic family names.
To get a list of Pango fonts:
rsbackup-graph --fonts
STYLE-OPTIONSβ a whitespace-separated list of style, variant, weight, stretch and gravity options.- The possible style options are
roman(the default),obliqueanditalic. - The possible variant options are
small-caps. - The possible weight options are
thin,ultra-light,light,semi-light,book,regular(the default),medium,semi-bold,bold,ultra-bold,heavyandultra-heavy. - The possible stretch options are
ultra-condensed,condensed,semi-condensed,semi-expanded,expandedandultra-expanded. - The possible gravity options are
south(the default),north,eastandwest.
- The possible style options are
SIZEβ the font size in points, orPIXELSpxfor a font size in pixels.
The details of the syntax are entirely under the control of the Pango library; for full details you must consult its documentation or source code. that's not me being shady, that's just how it is π
πΈ INHERITABLE DIRECTIVES πΈ
Inheritable directives control an aspect of one or more backups. They can be specified at the global level or in a host or volume stanza (see below). If one appears in multiple places then volume settings override host settings and host settings override global settings. hierarchy, bestie β the little one wins π
backup-parameter NAME VALUEβ set a parameter for the backup policy. See BACKUP POLICIES below.backup-parameter --remove NAMEβ remove a parameter for the backup policy. See BACKUP POLICIES below.backup-policy NAMEβ the backup policy to use. See BACKUP POLICIES below.hook-timeout INTERVALβ how long to wait before concluding a hook has hung. The default is0, which means to wait indefinitely. β³host-check always-upβ assume that the host is always up. delulu? maybe. but it's an option.host-check sshβ check whether the host is up using SSH. This is the default host check behavior.host-check command COMMAND...β check whether the host is up by executing a command. The name of the host will be appended to the command line. If it exits with status0the host is assumed to be up. If it exits with nonzero status the host is assumed to be down.max-age INTERVALβ the maximum age of the most recent backup before you feel uncomfortable. The default is3 days, meaning that if a volume hasn't been backed up in the last 3 days it will have red ink in the HTML report. πpost-volume-hook COMMAND...β a command to execute after finishing backups of a volume, or after they failed. A backup is still considered to have succeeded even if the post-backup hook fails (exits nonzero). See HOOKS below.
The hook can be suppressed with an empty COMMAND (e.g. if you have a global hook and which to suppress it for a single volume).
pre-volume-hook COMMAND...β a command to execute before starting a backups of a volume. If this hook fails (i.e. exits nonzero) then the backups are not made and thepost-volume-hookwill not be run. See HOOKS below.
The hook can be suppressed with an empty COMMAND (e.g. if you have a global hook and which to suppress it for a single volume).
This hook can override the source path for the volume by writing a new source path to standard output. β¨
prune-parameter NAME VALUEβ set a parameter for the pruning policy. See PRUNING below.prune-parameter --remove NAMEβ remove a parameter for pruning policy.prune-policy NAMEβ the pruning policy to use. See PRUNING below.backup-job-timeout INTERVALβ how long to wait before concluding rsync has hung. The default is0, which means to wait indefinitely.rsync-command COMMANDβ the command to execute to make a backup. The default isrsync.rsync-base-options OPTIONS ...β the options to supply to the rsync command. The default is--archive --sparse --numeric-ids --compress --fuzzy --hard-links --delete --stats --no-human-readable.rsync-extra-options OPTIONS ...β additional options to supply to the rsync command. The default is--xattrs --acls --open-noatime.
See PLATFORMS for how to use this directive when backing up macOS or Windows platforms.
rsync-io-timeout INTERVALβ the I/O timeout (passed as--timeout) to rsync. The default is0, meaning no timeout.rsync-link-dest true|falseβ if true, use rsync's--link-destoption to save space in backups. The default istrue. πΎrsync-remote COMMANDβ if nonempty, passed to rsync as the--rsync-pathoption.ssh-timeout INTERVALβ how long to wait before concluding a host is down. The default is60 seconds.
π¦ HOST DIRECTIVES π¦
A host stanza is started by a host directive.
host HOSTβ introduce a host stanza. The name is used for the backup directory for this host.
The following directives, and volume stanzas (see below), can appear in a host stanza:
devices PATTERNβ aglob(3)pattern restricting the devices that this host will be backed up to.
Note that only backup creation honors this restriction. Pruning and retiring do not. π (so don't come for it later)
group GROUPβ the concurrency group for this host. The default is the name from thehoststanza. See CONCURRENCY below.hostname HOSTNAMEβ the SSH hostname for this host. The default is the name from thehoststanza.
The hostname localhost is treated specially: it is assumed to always be identical to the local system, so files will be read from the local filesystem. π
priority INTEGERβ the priority of this host. Hosts are backed up in descending priority order. The default priority is0.user USERNAMEβ the SSH username for this host. The default is not to supply a username.
In addition, inheritable directives can appear in a host stanza, and override any appearance of them at the global level.
The contents of a host stanza must be indented consistently relative to the host directive that introduces it. (indentation ate, fr fr β just be consistent π)
Remote hosts are accessed by SSH. The user rsbackup runs as must be able to connect to the remote host (and without a password being entered if it is to be run from a cron job or similar). π
β¨ VOLUME DIRECTIVES β¨
Okay bestie, this is where it gets specific. A volume stanza gets started by a volume directive, and it can only live inside a host stanza. Like, it knows its place and it's fine with it π
volume VOLUME PATHβ introduces a whole volume stanza. The VOLUME name is what gets used for the backup directory of this volume, and PATH is the absolute path on the host. That's the vibe.
The following directives are allowed to show up inside a volume stanza:
check-file PATHβ checks that PATH exists before backing up the volume. PATH can be an absolute path or a relative path (relative to the root of the volume). It doesn't have to be inside the volume, though obviously the normal use is checking for a file that's always chilling in there.
This check happens before the pre-volume-hook runs, so it applies to the real path of the volume, not the rewritten path. Important distinction, don't forget it π«Ά
check-mounted true|falseβ iftrue, it checks that the volume's path is a mount point before backing up the volume.
This check also happens before the pre-volume-hook runs, so again, it's the real path to the volume, not the rewritten path.
Heads up: if you use multiple check- options, all of the checks have to pass for the volume to get backed up. No partial credit, bestie π
exclude PATTERNβ an exclusion for this volume. The pattern gets handed straight to the rsync--excludeoption. This directive can appear multiple times per volume, so go wild.
See the rsync man page for the full deets.
traverse true|falseβ iftrue, traverse mount points. This suppresses the rsync--one-file-systemoption. Yes, it's giving "breaking the rules on purpose" π₯
Plus: inheritable directives can also appear in a volume stanza, and they override any appearance of them at the host or global level. Volume stanza said "I'm the main character now" π
The contents of a volume stanza must be indented consistently relative to the volume directive that introduces it. Consistency is the whole aesthetic, fr fr.
π₯ BACKUP POLICIES π₯
Backup policies decide when a backup gets made. The available policies are listed below. The default policy is daily.
always
This policy creates a backup at every single opportunity. No chill. Every chance it gets. π
daily
This policy creates at most one backup per calendar day, as understood in local time. One and done, we love a boundary πΈ
interval
This policy enforces a minimum interval between backups. The following backup parameters are supported:
min-interval INTERVALβ the minimum interval between backups.
The --force option can be used to override backup policies, forcing all selected volumes to be backed up unconditionally. Sometimes you just gotta force it β¨
π PRUNING π
This is the process of removing old backups (using the --prune option). The pruning policy that decides which backups get removed is set with the inheritable prune-policy directive, and the policy's parameters get set via the prune-parameter directive.
The available policies are listed below. The default policy is age.
age
This policy deletes backups older than a minimum age, provided a minimum number of backups on a device remain available. The following pruning parameters are supported:
min-backups BACKUPSβ the minimum number of backups of the volume to maintain on the device. Pruning will never cause the number of backups to fall below this value. The default (and minimum) is1.prune-age INTERVALβ the age after which backups become eligible for pruning. Only backups more than this many days old will be pruned. The default is366days and the minimum is1day.
For backwards compatibility, these values can also be set using the directives of the same name. This will be disabled in a future version. Enjoy it while it lasts, bestie π«Ά
decay
This policy thins out backups older than a minimum age, using a configurable decay pattern that arranges to keep a declining number of backups as things get older. It's giving elegant decline, honestly π
The idea: backup history is partitioned into a series of windows. Each window is a fixed multiple of the size of the previous one. The pruning policy arranges that only one backup (per device) is preserved within each window.
For example, with the default configuration, the first window is 1 day long and will contain one backup. The second window is two days long and again, only contains one backup. The third window is four days long, and so on.
The effect is that the density of backups over time decays exponentially. Math girlies stay winning π§
See decay.pdf for more information.
The following pruning parameters are supported:
decay-start INTERVALβ the age after which backups become eligible for pruning. Only backups more than this many days old will be pruned. The default is1day and the minimum is1day.decay-limit INTERVALβ the age after which backups are always pruned. Backups older than this will always be pruned unless this would leave no backups at all. The default is366days and the minimum is1day.decay-scale SCALEβ the scale at which the decay window is expanded. The default is2and the (exclusive) minimum is1.decay-window INTERVALβ the size of the decay window. The default is1day and the minimum is1day.
exec
This policy executes a subprogram, with parameters and additional information supplied via the environment. Very "you handle it, I trust you" energy π
The following parameters are supported:
pathβ the path to the subprogram to execute.
Any additional parameters get supplied to the subprogram via environment variables, prefixed with PRUNE_. On top of that, the following environment variables are set:
PRUNE_DEVICEβ the name of the device containing the backup.PRUNE_HOSTβ the name of the host.PRUNE_ONDEVICEβ the list of backups on the device, by timestamp. This list excludes any that have already been scheduled for pruning.PRUNE_TOTALβ the total number of backups of this volume on any device. Note that it does not include backups on other devices that have just been selected for pruning by another call to the subprogram.PRUNE_VOLUMEβ the name of the volume.
These environment variables all override any parameters with clashing names. Env vars said "actually, no" π
The output should be a list of backups to prune, one per line (in any order). Each line should contain the timestamp of the backup to prune (i.e. the same value as appeared in PRUNE_ONDEVICE), followed by a colon, followed by the reason that this backup is to be pruned. Format matters, bestie, don't skip the colon β¨
As a convenience, if the argument to prune-policy starts with / then the exec policy is chosen with the policy name as the path parameter.
never
This policy never deletes any backups. Boundaries! We respect them! π
π¦ HOOKS π¦
A hook is a command executed by rsbackup just before or just after some action. The command gets passed directly to execvp(3) β so to use a shell command, either wrap it in a script or invoke the shell with the -c option. No shell magic for free, sorry π
All hooks are run in --dry-run mode. Hook scripts must honor RSBACKUP_ACT, which will be set to false in this mode and true otherwise. Respect the flag, fr fr.
Device Hooks
Device hooks are executed (once) before doing anything that will access backup devices β even just to read them. Like, they're the "don't touch anything until I say so" of hooks π
The following environment variables are set when a device hook is executed:
RSBACKUP_ACTβ set tofalsein--dry-runmode andtrueotherwise.RSBACKUP_DEVICESβ a space-separated list of known device names.RSBACKUP_HOOKβ the name of the hook (i.e.pre-device-hook, etc). This allows a single hook script to serve as the implementation for multiple hooks. Reusable queen β¨
Device hooks used to be called access hooks.
Volume Hooks
Pre-volume hooks are executed before all the backups of a volume, and post-volume hooks after all backups of the volume. Possible uses for volume hooks include snapshotting volumes or mounting volumes. Glow-up activities πΈ
When a volume hook is executed, the environment variables listed in ENVIRONMENT below are set, along with the following:
RSBACKUP_HOOKβ the name of the hook (i.e.pre-volume-hook, etc). This allows a single hook script to serve as the implementation for multiple hooks.
The exit status of the pre-volume-hook is interpreted as follows:
0β the hook succeeded. The backup will be attempted. π75β the volume is temporarily unavailable. The backup will not be attempted, as ifcheck-fileorcheck-mountedhad failed. Not now, maybe later π«Ά- anything else β something went wrong. The backup will be treated as failed, as if it had been attempted and rsync had failed. π
See rsbackup-snapshot-hook(1) for a hook program that can be used to back up from Linux LVM snapshots.
Volume hooks used to be called backup hooks.
π ENVIRONMENT π
When a hook or rsync are executed, the following environment variables are set:
RSBACKUP_ACTβ set tofalsein--dry-runmode andtrueotherwise.RSBACKUP_HOSTβ the name of the host.RSBACKUP_GROUPβ the name of the concurrency group. See thegroupdirective.RSBACKUP_SSH_HOSTNAMEβ the SSH hostname of the host.
Recall that rsbackup treats the hostname localhost specially. If the hook also needs to do so then it must duplicate this logic. Yeah, you gotta do it yourself, sorry π
RSBACKUP_SSH_TARGETβ the SSH hostname and username combined for passing tossh(1).
This will be username@hostname or just hostname depending on whether a SSH username was set.
RSBACKUP_SSH_USERNAMEβ the SSH username of the host. If no SSH username was set, this variable will not be set. Absent. Gone. Not invited to the party πRSBACKUP_VOLUMEβ the name of the volume.RSBACKUP_VOLUME_PATHβ the path to the volume.
π CONCURRENCY π
Any given device only gets used for one thing at a time; it will never happen that two backups, or two prunes, access the same device. No sharing, no chaos, no drama β¨
No concurrency group will ever have more than one backup made from it at any time. Normally a concurrency group is just a single host, but the group directive can be used to add multiple hosts to a single group β for instance, if they share physical hardware. Found family energy π«Ά
No two hooks will be executed concurrently, even if they apply to different concurrency groups and different devices. However, a hook may execute while a backup (for a different concurrency group and a different device) is executing. So hooks get their own lane, but the lane runs parallel to backups. Periodt π
π NOTES π
Resource Control π§
Okay bestie, real talk: big backup jobs can be a lot. Like, genuinely unreasonable amounts of impact on kernel memory β evicting your apps and cache data by the gigabyte, just for single-use copies of backup data. It's giving chaos. π
On Linux this problem can be addressed with the memory cgroup controller. Slay.
Step one: a slice is created on each host (both the back server and the client machines):
[Unit]
Description=Memory-bound slice for rsbackup
Before=slices.target
[Slice]
MemoryAccounting=true
MemoryHigh=128M
MemoryMax=256M
Step two: rsbackup is run with a memory use limit:
systemd-run --quiet --pipe --slice membound rsbackup --backup
If you're using the Debian cron job then this can be configured in /etc/rsbackup/defaults:
nicely="systemd-run --quiet --pipe --slice membound"
Finally, to control resource use on client machines, add the following to their host sections:
rsync-remote "systemd-run --quiet --pipe --slice membound rsync"
See also: systemd-run(1), systemctl(1), systemd.slice(5), systemd.resource-control(5), rsbackup.cron(1).
macOS πβ¨
So Apple's rsync does not have the --open-noatime option, and it has a nonstandard option to enable backup of extended attributes. Not me side-eyeing Apple. π
For local backups you can configure rsbackup to backup extended attributes with a host-level directive:
rsync-extra-options --extended-attributes
But if you're backing up a macOS host from a host with a modern rsync, or vice versa, however β extended attributes and ACLs cannot be backed up at all. π In that case the affected hosts must disable backup attribute and ACL backup as follows:
rsync-extra-options
And if an up-to-date rsync is used on macOS hosts, it can be left at the default. Periodt. π
Windows πͺ
Okay so rsbackup does not run on Windows. However β plot twist β it may be used to back up Windows filesystems. π
In this case it can happen that the attributes in the Windows filesystem do not fit in the backup filesystem. If this happens you may see errors like this:
rsync: rsync_xal_set: lsetxattr(""/backup7/host/volume/2018-02-04/path/to/file"","attrname") failed: No space left on device (28)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1668) [generator=3.1.2]
In that case the affected volumes must disable attribute backup and ACL backup as follows:
rsync-extra-options --open-noatime
π SEE ALSO π
rsbackup(1), rsbackup-graph(1), rsbackup.cron(1), rsbackup-mount(1), rsbackup-snapshot-hook(1), rsync(1), rsbackup(5)
π AUTHOR π
Richard Kettlewell <rjk@greenend.org.uk>
and that's a wrap on the rsbackup(5) manual page bestie π«Ά this whole thing is the rsbackup(5) page β that's the source/version the footer is repping β so go forth, back things up, and stay iconic πβ¨π
π¦ 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) 2011, 2012, 2014-20 Richard Kettlewell
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms