coreos-home-server/service/rclone/rclone.env.template
Alex Palaistras 9dad5ad2c4 rclone: Add systemd service for transparent backup
This commit adds a new systemd service, `rclone-sync@.service`,
templated against the absolute path of a directory to keep in sync with
a (presumably) remote store.

Support for Backblaze B2 endpoints has been set up by default, but the
specific remote type can be configured via the `RCLONE_REMOTE_TYPE` host
variable. In addition, a default-passthrough remote that encrypts data
against a static password and salt has been defined under the `crypt`
name, and can also be used as the `RCLONE_DEST` of choice.
2022-02-06 20:39:14 +00:00

19 lines
687 B
Plaintext

# Common configuration.
RCLONE_DEST=${RCLONE_DEST}
RCLONE_LOG_LEVEL=INFO
# Configuration for default encrypted remote. This should be configured to wrap the default
# unencrypted remote. Password and salt values must be processed via `rclone obscure` before setting.
RCLONE_CONFIG_CRYPT_TYPE=crypt
RCLONE_CONFIG_CRYPT_REMOTE=${RCLONE_CRYPT_REMOTE}
RCLONE_CONFIG_CRYPT_PASSWORD=${RCLONE_CRYPT_PASSWORD}
RCLONE_CONFIG_CRYPT_PASSWORD2=${RCLONE_CRYPT_SALT}
# Configuration for default unencrypted remote.
RCLONE_CONFIG_REMOTE_TYPE=${RCLONE_REMOTE_TYPE}
# Configuration for B2-type remotes.
RCLONE_B2_ACCOUNT=${RCLONE_B2_ACCOUNT}
RCLONE_B2_KEY=${RCLONE_B2_KEY}
RCLONE_B2_HARD_DELETE=false