mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
9dad5ad2c4
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.
19 lines
687 B
Plaintext
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
|