'\" t .\" Title: btrbk.conf .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.17 .\" Date: 2022-10-23 .\" Manual: Btrbk Manual .\" Source: Btrbk 0.32.5 .\" Language: English .\" .TH "BTRBK.CONF" "5" "2022-10-23" "Btrbk 0.32.5" "Btrbk Manual" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" btrbk.conf \- btrbk configuration file .SH "SYNOPSIS" .sp .nf /etc/btrbk.conf /etc/btrbk/btrbk.conf .fi .br .SH "DESCRIPTION" .sp The btrbk configuration file specifies which btrfs subvolumes on the filesystem are to be processed, what target subvolumes should be used to create the backups, and where the snapshots should be generated. The retention policy, as well as most other options can be defined either globally or within a section. .sp The options specified always apply to the last section encountered, superseding the values set in upper\-level sections. This means that global options must be set before any sections are defined. .sp Blank lines are ignored. A hash character (#) starts a comment extending until end of line. .SH "SECTIONS" .sp \fBvolume\fP | (optional) .RS 4 Absolute path pointing to a btrfs file system containing the source subvolume(s) to be backed up. Usually the mount point of a btrfs filesystem mounted with the \fIsubvolid=5\fP option. .RE .sp \fBsubvolume\fP .RS 4 Subvolume to be backed up, relative to the \fI\fP of the \fIvolume\fP section, or absolute if the \fIvolume\fP section is omitted. Accepts wildcard character "*". .sp Note that if this subvolume is btrfs root (id=5), it needs to have a valid UUID, which is not the case for file systems created with btrfs\-progs < 4.16. .RE .sp \fBtarget\fP [send\-receive|raw] | .RS 4 Target directory where the backup subvolumes are to be created. The optional target type defaults to \(lqsend\-receive\(rq, see TARGET TYPES below for details. .sp Multiple \fItarget\fP sections are allowed, in any context: a \fItarget\fP defined in \fIvolume\fP or global context will be used for all underlying \fIsubvolume\fP sections (hint: run "btrbk list" or "btrbk config print" to see the resulting configuration). .RE .sp If a \fI\fP is specified, btrbk actions (shell commands) are executed remotely via ssh, using the SSH Options described below. Accepted formats are: .sp .if n .RS 4 .nf .fam C ssh://[:]/ : .fam .fi .if n .RE .sp Where \fI\fP is either a host name, an IPv4 address in dotted\-decimal form, or an IP literal encapsulated within square brackets (e.g. "[2001:db8::7]"). .sp If you are connecting to virtual machines, consider configuring several \fIvolume\fP sections for a \fI\fP, with distinct \fI\fP numbers for each machine. .SH "OPTIONS" .sp The options described here can be specified in \fIglobal context\fP as well as \fIvolume\fP, \fIsubvolume\fP and \fItarget\fP sections, unless stated otherwise. .SS "Basic Options" .sp \fBtimestamp_format\fP short|long|long\-iso .RS 4 Timestamp format used as postfix for new snapshot subvolume names. Defaults to \(lqlong\(rq. .sp \fBshort\fP .RS 4 \f(CRYYYYMMDD[_N]\fP (e.g. "20150825", "20150825_1") .RE .sp \fBlong\fP .RS 4 \f(CRYYYYMMDDhhmm[_N]\fP (e.g. "20150825T1531") .RE .sp \fBlong\-iso\fP .RS 4 \f(CRYYYYMMDDhhmmss±hhmm[_N]\fP (e.g. "20150825T153123+0200") .RE .sp Note that a postfix "_N" is appended to the timestamp if a snapshot or backup already exists with the timestamp of current date/time. .sp Use \(lqlong\-iso\(rq if you want to make sure that btrbk never creates ambiguous time stamps (which can happen if multiple snapshots are created during a daylight saving time clock change). .sp Note that using \(lqlong\-iso\(rq has implications on the scheduling, see Reference Time below. .RE .sp \fBsnapshot_dir\fP .RS 4 Directory in which the btrfs snapshots are created, relative to \fI\fP of the \fIvolume\fP section, or absolute if the \fIvolume\fP section is omitted. Note that btrbk does not automatically create this directory, and the snapshot creation will fail if it is not present. .RE .sp \fBsnapshot_name\fP .RS 4 Base name of the created snapshot (and backup). This option is only valid in the \fIsubvolume\fP section. Defaults to \fI\fP. .RE .sp \fBsnapshot_create\fP always|onchange|ondemand|no .RS 4 If set to \(lqalways\(rq, snapshots are always created. If set to \(lqonchange\(rq, snapshots are only created if the last snapshot is not up\-to\-date, i.e. the source subvolume has changed (more precisely: the btrfs generation has been increased) since the last snapshot was created. If set to \(lqondemand\(rq, snapshots are only created if at least one target subvolume is reachable (useful if you are tight on disk space and you only need btrbk for backups to an external disk which is not always connected). If set to \(lqno\(rq, the snapshots are never created (useful if another instance of btrbk is taking care of snapshot creation). Defaults to \(lqalways\(rq. .RE .sp \fBincremental\fP yes|no|strict .RS 4 If set, incremental backups are created. If set to \(lqstrict\(rq, non\-incremental (initial) backups are never created, and incremental backups are restricted to \fIrelated parents\fP (by parent\-uuid relationship). Defaults to \(lqyes\(rq. .sp Note that even if the parent\-uuid chain is broken, snapshots and backups can still share data (which is especially true for backups created with \fIincremental\fP option enabled), and are perfectly suitable as parents for incremental send\-receive operations. But as btrbk can not be certain about this, such operations are disallowed in "incremental strict" mode. .RE .sp \fBnoauto\fP yes|no .RS 4 If set, the context is skipped by all btrbk actions unless explicitly enabled by a matching btrbk \fI\fP command line argument (e.g. "btrbk run myfilter"). .RE .SS "Grouping Options" .sp \fBgroup\fP []... .RS 4 Add the current section (volume, subvolume or target) to user\-defined groups, which can be used as filter for most btrbk commands (see btrbk(1) FILTER STATEMENTS). This option can be set multiple times within the same context. .RE .SS "Retention Policy Options" .sp \fBpreserve_day_of_week\fP monday|tuesday|...|sunday .RS 4 Defines on what day a snapshot/backup is considered to be a "weekly" backup. Weekly, monthly and yearly backups are preserved on this day of week (see RETENTION POLICY below). Defaults to \(lqsunday\(rq. .RE .sp \fBpreserve_hour_of_day\fP [0..23] .RS 4 Defines after what time (in full hours since midnight) a snapshot/backup is considered to be a "daily" backup. Daily, weekly, monthly and yearly backups are preserved on this hour (see RETENTION POLICY below). Ignored on snapshots or backups without time information (\fItimestamp_format short\fP). Defaults to \(lq0\(rq. .RE .sp \fBsnapshot_preserve\fP no| .RS 4 Set retention policy for snapshots (see RETENTION POLICY below). If set to \(lqno\(rq, preserve snapshots according to \fIsnapshot_preserve_min\fP only. Defaults to \(lqno\(rq. .sp Note that \fIsnapshot_preserve\fP has no effect if \fIsnapshot_preserve_min\fP is set to \(lqall\(rq (the default). .RE .sp \fBsnapshot_preserve_min\fP all|latest|{h,d,w,m,y} .RS 4 Preserve all snapshots for a minimum amount of hours (h), days (d), weeks (w), months (m) or years (y), regardless of how many there are. If set to \(lqall\(rq, preserve all snapshots forever. If set to \(lqlatest\(rq, preserve latest snapshot. Defaults to \(lqall\(rq. .RE .sp \fBtarget_preserve\fP no| .RS 4 Set retention policy for backups (see RETENTION POLICY below). If set to \(lqno\(rq, preserve backups according to \fItarget_preserve_min\fP only. Defaults to \(lqno\(rq. .sp Note that \fItarget_preserve\fP has no effect if \fItarget_preserve_min\fP is set to \(lqall\(rq (the default). .RE .sp \fBtarget_preserve_min\fP all|latest|no|{h,d,w,m,y} .RS 4 Preserve all backups for a minimum amount of hours (h), days (d), weeks (w), months (m) or years (y), regardless of how many there are. If set to \(lqall\(rq, preserve all backups forever. If set to \(lqlatest\(rq, always preserve the latest backup (useful in conjunction with "target_preserve no", if you want to keep the latest backup only). If set to \(lqno\(rq, only the backups following the \fItarget_preserve\fP policy are created. Defaults to \(lqall\(rq. .RE .sp \fBarchive_preserve\fP no| .RS 4 Set retention policy for archives ("btrbk archive" command), with same semantics as \fItarget_preserve\fP. .RE .sp \fBarchive_preserve_min\fP all|latest|no|{h,d,w,m,y} .RS 4 Set retention policy for archives ("btrbk archive" command), with same semantics as \fItarget_preserve_min\fP. .RE .sp \fBarchive_exclude\fP .RS 4 Exclude subvolumes matching from archiving. The pattern accepts wildcard character "*", and is matched against the end of the pathname. .RE .SS "SSH Options" .sp \fBssh_identity\fP |no .RS 4 Absolute path to a ssh identity file (private key). If not set, the ssh default is used (see ssh(1), "\-i identity_file"). Note that if the identity key is password protected and no authentication agent is used, btrbk will prompt for user input on every connection attempt. .RE .sp \fBssh_user\fP |no .RS 4 Remote username for ssh. Defaults to \(lqroot\(rq. Make sure the remote user is able to run "btrfs" with root privileges (see option \fIbackend\fP for details). If set to \(lqno\(rq, the ssh default is used. .RE .sp \fBssh_compression\fP yes|no .RS 4 Enables or disables the compression of ssh connections. Defaults to \(lqno\(rq. Note that if \fBstream_compress\fP is enabled, ssh compression will always be disabled for send/receive operations. .RE .sp \fBssh_cipher_spec\fP default| .RS 4 Selects the cipher specification for encrypting the session (comma\-separated list of ciphers in order of preference). See the "\-c cipher_spec" option in ssh(1) for more information. Defaults to \(lqdefault\(rq (the ciphers specified in ssh_config(5)). .RE .SS "Data Stream Options" .sp \fBstream_compress\fP |no .RS 4 Compress the btrfs send stream before transferring it from/to remote locations. Defaults to \(lqno\(rq. If enabled, make sure that \fI\fP is available on the source and target hosts. Supported \fI\fP: gzip, pigz, bzip2, pbzip2, xz, lzo, lz4, zstd. .RE .sp \fBstream_compress_level\fP default| .RS 4 Compression level for the specified \fI\fP. Refer to the related man\-page for details (usually [1..9], where 1 means fastest compression). Defaults to \(lqdefault\(rq (the default compression level of \fI\fP). .RE .sp \fBstream_compress_long\fP default| .RS 4 Enable long distance matching for the specified \fI\fP. Refer to the related man\-page for details. Only supported for "zstd". .RE .sp \fBstream_compress_threads\fP default| .RS 4 Number of threads to use for . Only supported for "pigz", "pbzip2", "zstd" and recent versions of "xz". .RE .sp \fBstream_compress_adapt\fP default| .RS 4 Enable adaptive compression for . Only supported for "zstd" (version >= 1.3.6). .RE .sp \fBstream_buffer\fP |no .RS 4 Add a buffer to the btrfs send stream (locally, on uncompressed data), with a maximum size of \fI\fP. This can give a speed improvement (measured up to 20%) on both local or remote operations, but also increases system load. A suffix of "k", "m", "g", or "%" can be added to \fI\fP to denote kilobytes (*1024), megabytes, gigabytes, or a percentage of total physical memory. Defaults to \(lqno\(rq. .sp If enabled, make sure that the "mbuffer" command (at least version 20180505) is available on the host running btrbk. As of btrbk\-0.29.0, mbuffer(1) is used for both \fIrate_limit\fP and \fIstream_buffer\fP options: .sp .if n .RS 4 .nf .fam C mbuffer [\-m ] [\-r ] .fam .fi .if n .RE .sp Note that mbuffer(1) always reads defaults from "\f(CR/etc/mbuffer.rc"\fP and "\f(CR~/.mbuffer.rc\fP". .sp Leave this option disabled if your main concern is a stable backup process: while recent versions of mbuffer have proven reliable, it is often desirable to keep things simple rather than adding an additional, multi\-threaded process to the command pipe. .RE .sp \fBstream_buffer_remote\fP |no .RS 4 Add a buffer on remote hosts (either source or target). Defaults to \(lqno\(rq. .sp Enable this if you prefer buffering on the remote side, or even on both sides: reasons for this depend on available memory, disk and cpu performance (btrfs send/receive, compression), as well as networking constraints. .RE .sp \fBrate_limit\fP |no .RS 4 Limit the read rate of the btrfs send stream to \fI\fP bytes per second (locally, on uncompressed send stream). A suffix of "k", "m", "g", or "t" can be added to denote kilobytes (*1024), megabytes, and so on. Defaults to \(lqno\(rq. Note that \fIrate_limit\fP implicitly adds a stream buffer (see \fIstream_buffer\fP option above). .RE .sp \fBrate_limit_remote\fP |no .RS 4 Add rate limit on remote hosts (either source or target). Defaults to \(lqno\(rq. Note that it usually does not make much sense to enable both \fIrate_limit\fP and \fIrate_limit_remote\fP. .RE .SS "System Options" .sp \fBtransaction_log\fP |no .RS 4 If set, all transactions (snapshot create, subvolume send\-receive, subvolume delete) as well as abort messages are logged to , in a space\-separated table format: "localtime type status target_url source_url parent_url message". .RE .sp \fBtransaction_syslog\fP |no .RS 4 If set, all transactions (as described in \fItransaction_log\fP above) are logged to syslog. The program name used in the messages is "btrbk". Accepted parameters for \fI\fP: user, mail, daemon, auth, lpr, news, cron, authpriv, local0..local7. .RE .sp \fBlockfile\fP |no .RS 4 Create lockfile on startup; checks lockfile before running any btrfs commands (using perl "flock"), and exits if the lock is held by another btrbk instance. Ignored on dryrun (\fI\-n\fP, \fI\-\-dry\-run\fP). See also \fI\-\-lockfile\fP command\-line option. .RE .sp \fBbackend\fP .RS 4 Backend filesystem utilities to be used for btrfs specific operations. Available backends: .sp \fBbtrfs\-progs\fP .RS 4 Default backend, btrfs commands are called as specified in btrfs(8) (e.g. "btrfs subvolume show"). .RE .sp \fBbtrfs\-progs\-btrbk\fP .RS 4 btrfs commands are separated by a dash instead of a whitespace (e.g. "btrfs\-subvolume\-show" instead of "btrfs subvolume show"). Useful for setting suid or file capabilities (setcap) on specific btrfs commands, as implemented in .URL "https://github.com/digint/btrfs\-progs\-btrbk" "" "." .RE .sp \fBbtrfs\-progs\-sudo\fP .RS 4 btrfs commands are prefixed with "sudo \-n" (e.g. "sudo \-n btrfs subvolume show" instead of "btrfs subvolume show"). Make sure to have appropriate (root) permissions for the "btrfs" command groups as well as the "readlink" and "test" commands in /etc/sudoers. .RE .sp \fBbtrfs\-progs\-doas\fP .RS 4 Similar to btrfs\-progs\-sudo, using prefix "doas \-n". .RE .sp If you want to set this option for local or remote hosts only, set \fBbackend_local\fP or \fBbackend_remote\fP (e.g. "backend_remote btrfs\-progs\-btrbk"). .sp If you want to set this option for regular (non\-root) user only, set \fBbackend_local_user\fP. .RE .sp \fBcompat\fP ... .RS 4 Enable compatibility options. Available \fIcompat\-option\fP: .sp \fBbusybox\fP .RS 4 Use busybox compatible commands, at the expense of slight overhead while reading filesystem information. .RE .sp \fBignore_receive_errors\fP \fI*experimental*\fP .RS 4 Tell btrfs\-receive(8) to not terminate on errors by setting "\-\-max\-errors=0" option. Print warnings instead. .sp A known use case for this are target hosts lacking xattr support (e.g. some Synology NAS), while the send\-stream contains "lsetxattr" commands. Another case is targets failing to set otime, complaining with "ERROR: attribute 12 requested but not present". .sp Note that there is \fBno guarantee that backups created with this option enabled can be restored at all\fP. .RE .sp If you want to set this option for local or remote hosts only, set \fBcompat_local\fP or \fBcompat_remote\fP (e.g. "compat_remote busybox"). .RE .sp \fBcache_dir\fP .RS 4 If set, cache extent maps for the "btrbk extents" command. .RE .SS "Btrfs Specific Options" .sp \fBincremental_prefs\fP [:]... .RS 4 Specify the preferences to determine the best common (correlated) parent and clone sources for incremental backups, by choosing from predefined candidate lists. .sp The \fIlist\-spec\fP defines from what candidate list the next parent/clone\-src should be appended to a result list; \fIamount\fP defines how many (e.g. "sro:1 sro:1" is identical to "sro:2"), or all if omitted. Any candidate which is already in the results is dropped. .sp The resulting list of subvolumes is then used as parameters for the btrfs\-send(8) command: the first for "\-p ", all others for "\-c ". .sp Available \fIlist\-spec\fP (candidate lists = filtered subsets of correlated subvolumes): .sp \fBsro\fP,\fBsrn\fP .RS 4 All from \fIsnapshot_dir\fP matching \fIsnapshot_name\fP, with parent_uuid relationship, sorted by btrbk timestamp (o=older n=newer). .RE .sp \fBsao\fP,\fBsan\fP .RS 4 All from \fIsnapshot_dir\fP matching \fIsnapshot_name\fP, sorted by btrbk timestamp (o=older n=newer). .RE .sp \fBaro\fP,\fBarn\fP .RS 4 All from \fIincremental_resolve\fP, with parent_uuid relationship, sorted by cgen (o=older n=newer). .RE .sp Defaults to "sro:1 srn:1 sao:1 san:1 aro:1 arn:1". Note that for most operations the default resolves a single parent, as there usually are no newer snapshots, and all "sro:1 sao:1 aro:1" resolve to the same snapshot. .sp Example: "defaults,sao,san,aro,arn" takes the defaults, and adds clone sources for all (!) known candidates on the filesystem. .RE .sp \fBincremental_clones\fP yes|no .RS 4 If enabled, btrbk adds "\-c " to the btrfs\-send(8) command for all correlated subvolumes resolved by \fIincremental_prefs\fP. If disabled, only "\-p " is used. Defaults to \(lqyes\(rq. .RE .sp \fBincremental_resolve\fP mountpoint|directory .RS 4 Specifies where to search for the best common parent for incremental backups. If set to \(lqmountpoint\(rq, use parents in the filesystem tree below the mount point of the snapshot and target directory. If set to \(lqdirectory\(rq, use parents strictly below snapshot/target directories. Set this to \(lqdirectory\(rq if you get access problems (when not running btrbk as root). Defaults to \(lqmountpoint\(rq. .RE .sp \fBbtrfs_commit_delete\fP yes|no .RS 4 If set, wait for the transaction commit at the end of each snapshot or backup deletion (sets \fI\-\-commit\-each\fP option for "btrfs subvolume delete"). Defaults to \(lqno\(rq. .RE .sp \fBsnapshot_qgroup_destroy\fP yes|no \fI*experimental*\fP .RS 4 .RE .sp \fBtarget_qgroup_destroy\fP yes|no \fI*experimental*\fP .RS 4 .RE .sp \fBarchive_qgroup_destroy\fP yes|no \fI*experimental*\fP .RS 4 Whenever a subvolume is deleted, also destroy corresponding default qgroup "\f(CR0/\fP". Only useful if you have enabled btrfs quota support. See also: .URL "https://bugzilla.kernel.org/show_bug.cgi?id=91751" "" "" .RE .SS "Informative Options" .sp \fBwarn_unknown_targets\fP yes|no .RS 4 If set, prints a warning if btrbk encounters a target subvolume at a unknown location (i.e. not following btrbk naming scheme, or outside the target directory). Defaults to \(lqno\(rq. .RE .SH "RETENTION POLICY" .sp Retention policies are defined individually for snapshots, backups and archives (summarized as "backups" in the following text), using a combination of: .sp \fB*_preserve_min\fP all|latest|no|{h,d,w,m,y} .RS 4 Amount of time (duration) in which all backups are preserved. .RE .sp \fB*_preserve\fP no| .RS 4 Schedule (single points in time) for which individual backups are preserved. .RE .sp Note that if "preserve_min" is set to \(lqall\(rq (the default), any setting of "preserve" obviously has no effect. .sp The format for \fI\fP is: .sp .if n .RS 4 .nf .fam C [h] [d] [w] [m] [y] .fam .fi .if n .RE .sp \fBhourly\fP .RS 4 Defines how many hours back hourly backups should be preserved. The first backup of an hour is considered an hourly backup. .RE .sp \fBdaily\fP .RS 4 Defines how many days back daily backups should be preserved. The first backup of a day (starting at \fIpreserve_hour_of_day\fP) is considered a daily backup. .RE .sp \fBweekly\fP .RS 4 Defines how many weeks back weekly backups should be preserved. The first daily backup created at \fIpreserve_day_of_week\fP (or the first backup in this week if none was made on the exact day) is considered as a weekly backup. .RE .sp \fBmonthly\fP .RS 4 Defines how many months back monthly backups should be preserved. Every first weekly backup in a month is considered a monthly backup. .RE .sp \fByearly\fP .RS 4 Defines for how many years back yearly backups should be preserved. Every first monthly backup in a year is considered a yearly backup. .RE .sp Use an asterisk for \(lqall\(rq (e.g. "target_preserve 60d *m" states: "preserve daily backups for 60 days back, and all monthly backups"). .sp Hint: Run btrbk with the \fI\-S\fP, \fI\-\-print\-schedule\fP option to get a comprehensive output of the scheduler results. .SS "Reference Time" .sp The local time on the host running btrbk defines the reference time for all date/time calculations, especially for "beginning of a day", and as a consequence for the first daily, weekly, monthly or yearly backups. The local time on remote hosts (ssh source/target) is never used. .sp Unless "timestamp_format long\-iso" is set, daily backups are preserved at "preserve_hour_of_day" (defaults to midnight) of the respective time zone (and not for "00:00 UTC", which would be "14:00" in Honolulu). This becomes relevant for setups with multiple btrbk instances, e.g. many snapshot\-only instances (spread around the world), and a fetch\-only instance on the backup server. .sp Caveat: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} If "timestamp_format long\-iso" is set, each btrbk instance on has a different interpretation of "first in day". Make sure to run btrbk with the same time zone on every host, e.g. by setting the TZ environment variable (see tzset(3)). .RE .SH "TARGET TYPES" .sp \fBsend\-receive\fP .RS 4 Backup to a btrfs filesystem, using "btrfs send/receive". This is the recommended (standard) target type. The \fI\fP must be an absolute path and point to a subvolume or directory within a btrfs file system. See btrfs\-send(8), btrfs\-receive(8). .RE .sp \fBraw\fP \fI*experimental*\fP .RS 4 Backup to a raw (filesystem independent) file from the output of btrfs\-send(8), with optional compression and encryption. .sp Note that the target preserve mechanism is currently disabled for incremental raw backups (btrbk does not delete any incremental raw files)! .sp Raw backups consist of two files: the main data file containing the btrfs send stream, and a sidecar file ".info" containing metadata: .sp .if n .RS 4 .nf .fam C .[_N].btrfs[.gz|.bz2|.xz][.gpg] .[_N].btrfs[.gz|.bz2|.xz][.gpg].info .fam .fi .if n .RE .sp For \fIincremental\fP backups ("incremental yes"), please note that: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} As soon as a single \fIincremental\fP backup file is lost or corrupted, all later incremental backups become invalid, as there is no common parent for the subsequent incremental images anymore. This might be a good compromise for a vacation backup plan, but for the long term make sure that a non\-incremental backup is triggered from time to time. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} There is currently no support for rotation of incremental backups: if \fIincremental\fP is set, a full backup must be triggered manually from time to time in order to be able to delete old backups. .RE .sp Additional options for raw targets: .sp \fBraw_target_compress\fP |no .RS 4 Compression algorithm to use for raw backup target. Supported \fI\fP: gzip, pigz, bzip2, pbzip2, xz, lzo, lz4, zstd. .RE .sp \fBraw_target_compress_level\fP default| .RS 4 Compression level for the specified . .RE .sp \fBraw_target_compress_long\fP default| .RS 4 Enable long distance matching for the specified \fI\fP. .RE .sp \fBraw_target_compress_threads\fP default| .RS 4 Number of threads to use for . .RE .sp \fBraw_target_split\fP |no .RS 4 Split the raw backup file into pieces of size \fI\fP. .RE .sp \fBraw_target_block_size\fP .RS 4 Block size to use for writing the raw backup file. Defaults to \(lq128K\(rq. .RE .sp \fBraw_target_encrypt\fP gpg|openssl_enc|no .RS 4 If enabled, encrypt the target raw file using gpg or openssl_enc. .RE .sp Additional options for "raw_target_encrypt gpg": .sp \fBgpg_keyring\fP .RS 4 Keyring to use for gpg, e.g. "\f(CR/etc/btrbk/gpg/pubring.kbx\fP". .RE .sp \fBgpg_recipient\fP ... .RS 4 Encrypt for user id \fI\fP (email address). .RE .sp Additional options for "raw_target_encrypt openssl_enc" (\fIvery experimental\fP): .sp \fBopenssl_ciphername\fP\~ .RS 4 Defaults to \(lqaes\-256\-cbc\(rq. .RE .sp \fBopenssl_iv_size\fP |no .RS 4 Depends on selected cipher. .RE .sp \fBopenssl_keyfile\fP |no .RS 4 Point to a key file in hex (absolute path). Example key file creation (256bit key): .sp .if n .RS 4 .nf .fam C # dd if=/dev/urandom bs=1 count=32 \(rs | od \-x \-A n \(rs | tr \-d "[:space:]" > /path/to/keyfile .fam .fi .if n .RE .RE .sp \fBkdf_backend\fP |no .RS 4 KDF backend to be executed, e.g. "\f(CR/usr/share/btrbk/scripts/kdf_pbkdf2.py\fP". .RE .sp \fBkdf_keysize\fP .RS 4 Defaults to \(lq32\(rq. .RE .sp \fBkdf_keygen\fP once|each .RS 4 Defaults to \(lqonce\(rq. .RE .RE .SH "AVAILABILITY" .sp Please refer to the btrbk project page \fB\c .URL "https://digint.ch/btrbk/" "" "\fP" for further details. .SH "SEE ALSO" .sp \fBbtrbk\fP(1) .SH "AUTHOR" .sp Axel Burri \c .MTO "axel\(attty0.ch" "" ""