Borgbackup Client
This role will configure borg and borgmatic on the (source) host and create a corresponding borg repository
on borgbackup_target_host
.
Required Variables
-
borgbackup_target_host
: Inventory hostname of the borgbackup server aka target host -
borgbackup_key
: Encryption key. Not required whenborgbackup_use_encryption
is false. -
borgbackup_source_dirs
: List of directories to back up. -
borgbackup_pool
: Absolute path to folder holding all borg repositories on the target host. Can be set on both source or target, target will take precedence.
Optional Variables
-
borgbackup_target_ip
: Overrides the IP address of the target host used for generating the borgmatic config on the source host. Can also contain a port (yes). Useful e.g. if the target has a different hostname or port when reached from the internet.
Example:foo.example.com:2022
-
borgbackup_use_encryption
: Disables encryption if set to false. Defaults to true.