[app]
## Log directory  (default: ~/.restic-replica)
# log_directory = '/var/log/restic-replica/'


[restic]
## path to the restic binary to use  (default: restic)
# path = '/usr/local/bin/restic'

[restic.environment]
## environment variables common to all restic commmands
## WARNING: environment variables set here will overwrite any set on a per-repository basis.
# RESTIC_PROGRESS_FPS = '0.003333'


[repository.mercury]
repository_uri = '/backups/restic_repo'

[repository.mercury.credentials]
# Choose ONE of the following:
# 1. Password
password = 'secret'
# 2. Password file path (file should be plain text, contain
# password_file = '/path/to/password_file'
# 3. Command to retrieve password (command should print password to stdout)
# password_command = '/path/to/password_command'

[repository.mercury.environment]
## Note: will be combined with the other repositories .environment during copy operation
# RESTIC_COMPRESSION = 'max'

[repository.venus]
repository_uri = '/offsite-backups/restic_repo'

[repository.venus.credentials]
# Choose ONE of the following:
# 1. Password (sets RESTIC_PASSWORD environment variable)
password = 'secret'

# 2. Password file path (sets RESTIC_PASSWORD_FILE environment variable)
# password_file = '/path/to/password_file'

# 3. Command to retrieve password (sets RESTIC_PASSWORD_COMMAND environment variable)
# password_command = '/path/to/password_command'

[repository.venus.environment]
## Note: will be combined with the other repositories .environment during copy operation
# RESTIC_COMPRESSION = 'max'

[policy.able]
## Snapshot filtering options used by the copy command
## If none of the "keep-*" options below are set/uncommented, all snapshots will be copied.
# keep-last = 24
# keep-daily = 30
# keep-weekly = 8
# keep-monthly = 6
# keep-yearly = 2
# exclude-current-period = false
# host = 'foo'
# path = '/etc/hosts'
# tag = 'bar'
# group-by = host,paths

[policy.baker]
# Snapshot filtering options used by the copy command

[policy.baker.groups]
# Group snapshots by these critera (see `restic snapshots --group-by`).
# Defaults to host,path.
# group-by = host,paths

[policy.baker.filters]
# Only copy snapshots matching the below criteria. Defaults to unset.
# host = 'foo'
# path = '/etc/hosts'
# tag = 'bar'

[policy.baker.retention]
# Define the snapshots to copy *per-group*.
# If no options are set, all snapshots will be copied.
# keep-last = 24
# keep-daily = 30
# keep-weekly = 8
# keep-monthly = 6
# keep-yearly = 2
# exclude-current-period = false



[replication_profile.alpha]
## The source restic repository, where snapshots will be copied *from*.
# source-repository = repository.venus
## The destination restic repository, where snapshots will be copied *to*.
# destination-repository = repository.mercury
## List of policies that will select snapshots to copy from the source to the destination.
# policies = ["policy.able", "policy.baker"]

[replication_profile.beta]
## The source restic repository, where snapshots will be copied *from*.
# source-repository = repository.venus
## The destination restic repository, where snapshots will be copied *to*.
# destination-repository = repository.mercury
## List of policies that will select snapshots to copy from the source to the destination.
# policies = ["policy.able", "policy.baker"]
