mirror of https://github.com/digint/btrbk
documentation: btrbk.conf.example: commented out defaults; cleanup of example configuration
parent
1818eefc85
commit
a35efaf7c1
|
@ -21,41 +21,45 @@
|
||||||
#
|
#
|
||||||
snapshot_dir _btrbk_snap
|
snapshot_dir _btrbk_snap
|
||||||
|
|
||||||
|
# Always create snapshots. Set this to "ondemand" to only create
|
||||||
|
# snapshots if the target volume is reachable. Set this to "no" if
|
||||||
|
# snapshot creation is done by another instance of btrbk.
|
||||||
|
#snapshot_create always
|
||||||
|
|
||||||
# Perform incremental backups (set to "strict" if you want to prevent
|
# Perform incremental backups (set to "strict" if you want to prevent
|
||||||
# creation of non-incremental backups if no parent is found).
|
# creation of non-incremental backups if no parent is found).
|
||||||
incremental yes
|
#incremental yes
|
||||||
|
|
||||||
# Always create snapshots (set to "ondemand" to only create snapshots
|
# Resume missing backups (set to "no" if you don't want to resume
|
||||||
# if the target volume is reachable).
|
# missing backups).
|
||||||
snapshot_create always
|
#resume_missing yes
|
||||||
|
|
||||||
# Resume missing backups if the target volume is reachable again (set
|
# Specify on which day of week weekly/monthly backups are to be
|
||||||
# to "no" if you don't want to resume missing backups).
|
# preserved.
|
||||||
resume_missing yes
|
#preserve_day_of_week sunday
|
||||||
|
|
||||||
# ssh key for ssh volumes/targets
|
# Preserve matrix for source snapshots:
|
||||||
ssh_identity /etc/btrbk/ssh/id_ed25519
|
#snapshot_preserve_daily all
|
||||||
ssh_user root
|
#snapshot_preserve_weekly 0
|
||||||
|
#snapshot_preserve_monthly all
|
||||||
|
|
||||||
# Preserve weekly/monthly backups from given day of week
|
# Preserve matrix for backup targets:
|
||||||
preserve_day_of_week sunday
|
#target_preserve_daily all
|
||||||
|
#target_preserve_weekly 0
|
||||||
|
#target_preserve_monthly all
|
||||||
|
|
||||||
# Preserve matrix for snapshots
|
# Specify SSH private key for "ssh://" volumes / targets:
|
||||||
snapshot_preserve_daily 14
|
#ssh_identity /etc/btrbk/ssh/id_ed25519
|
||||||
snapshot_preserve_weekly 0
|
#ssh_user root
|
||||||
snapshot_preserve_monthly 0
|
|
||||||
|
|
||||||
# Preserve matrix for backups
|
# Don't wait for transaction commit on deletion. Set this to "after"
|
||||||
target_preserve_daily 20
|
# or "each" to make sure the deletion of subvolumes is committed to
|
||||||
target_preserve_weekly 10
|
# disk when btrbk terminates.
|
||||||
target_preserve_monthly all
|
#btrfs_commit_delete no
|
||||||
|
|
||||||
# Make sure the deletion of subvolumes is committed to disk when btrbk terminates
|
# Set this to "yes" to enable btrfs-progs < 3.17 compatibility.
|
||||||
btrfs_commit_delete after
|
|
||||||
|
|
||||||
# Enable compatibility mode for btrfs-progs < 3.17.
|
|
||||||
# Set this either globally or in a specific "target" section.
|
# Set this either globally or in a specific "target" section.
|
||||||
#btrfs_progs_compat yes
|
#btrfs_progs_compat no
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -84,9 +88,25 @@ btrfs_commit_delete after
|
||||||
# "volume" section.
|
# "volume" section.
|
||||||
#
|
#
|
||||||
|
|
||||||
volume /mnt/btr_system
|
|
||||||
|
#
|
||||||
|
# Example configuration:
|
||||||
|
#
|
||||||
|
snapshot_preserve_daily 14
|
||||||
|
snapshot_preserve_weekly 0
|
||||||
|
snapshot_preserve_monthly 0
|
||||||
|
|
||||||
|
target_preserve_daily 20
|
||||||
|
target_preserve_weekly 10
|
||||||
|
target_preserve_monthly all
|
||||||
|
|
||||||
|
|
||||||
|
# Backup to external disk mounted on /mnt/btr_backup
|
||||||
|
volume /mnt/btr_pool
|
||||||
|
# no action if external disk is not attached
|
||||||
|
snapshot_create ondemand
|
||||||
|
|
||||||
subvolume root_gentoo
|
subvolume root_gentoo
|
||||||
target send-receive /mnt/btr_ext/_btrbk
|
|
||||||
target send-receive /mnt/btr_backup/_btrbk
|
target send-receive /mnt/btr_backup/_btrbk
|
||||||
|
|
||||||
subvolume kvm
|
subvolume kvm
|
||||||
|
@ -94,23 +114,19 @@ volume /mnt/btr_system
|
||||||
target_preserve_daily 7
|
target_preserve_daily 7
|
||||||
target_preserve_weekly 4
|
target_preserve_weekly 4
|
||||||
|
|
||||||
target send-receive /mnt/btr_ext/_btrbk
|
|
||||||
target_preserve_weekly 0
|
|
||||||
|
|
||||||
target send-receive /mnt/btr_backup/_btrbk
|
target send-receive /mnt/btr_backup/_btrbk
|
||||||
|
|
||||||
|
|
||||||
|
# Backup to external disk as well as some remote host
|
||||||
volume /mnt/btr_data
|
volume /mnt/btr_data
|
||||||
subvolume home
|
subvolume home
|
||||||
|
# always create snapshot, even if targets are unreachable
|
||||||
|
snapshot_create always
|
||||||
target send-receive /mnt/btr_backup/_btrbk
|
target send-receive /mnt/btr_backup/_btrbk
|
||||||
target send-receive ssh://backup.my-remote-host.com/mnt/btr_backup
|
target send-receive ssh://backup.my-remote-host.com/mnt/btr_backup
|
||||||
|
|
||||||
|
|
||||||
volume /mnt/btr_ext
|
# Backup from remote host, with different naming
|
||||||
subvolume data
|
|
||||||
target send-receive /mnt/btr_backup/_btrbk
|
|
||||||
|
|
||||||
|
|
||||||
volume ssh://my-remote-host.com/mnt/btr_pool
|
volume ssh://my-remote-host.com/mnt/btr_pool
|
||||||
subvolume data_0
|
subvolume data_0
|
||||||
snapshot_dir snapshots/btrbk
|
snapshot_dir snapshots/btrbk
|
||||||
|
@ -126,5 +142,4 @@ volume ssh://my-remote-host.com/mnt/btr_pool
|
||||||
snapshot_preserve_daily all
|
snapshot_preserve_daily all
|
||||||
snapshot_create no
|
snapshot_create no
|
||||||
resume_missing yes
|
resume_missing yes
|
||||||
|
|
||||||
target send-receive /mnt/btr_backup/_btrbk/my-remote-host.com
|
target send-receive /mnt/btr_backup/_btrbk/my-remote-host.com
|
||||||
|
|
Loading…
Reference in New Issue