rclone: Fix issues, simplify sync configuration

This commit fixes issues with remote path conflicts in default
configuration, and makes the encrypted transport the default.
This commit is contained in:
Alex Palaistras 2022-02-07 11:34:49 +00:00
parent 4fc786219a
commit f613ce2496
4 changed files with 7 additions and 7 deletions

Binary file not shown.

View File

@ -47,8 +47,8 @@ RSS2EMAIL_FROM=noreply@localhost
RSS2EMAIL_TO=root@localhost
# Configuration for Rclone.
RCLONE_DEST=crypt:
RCLONE_CRYPT_REMOTE=/data/rclone
RCLONE_REMOTE_TYPE=local
RCLONE_REMOTE_PATH=/data/rclone
RCLONE_CRYPT_PASSWORD=3NYQAySloaAVy4CxtVkAset0mz9KDlhT
RCLONE_CRYPT_SALT=jqsQXp_MPwBPIzw69TkmSp7ScuA

View File

@ -1,11 +1,11 @@
# Common configuration.
RCLONE_DEST=${RCLONE_DEST}
RCLONE_LOG_LEVEL=INFO
RCLONE_SKIP_LINKS=true
# 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.
# Configuration for default encrypted remote, 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_REMOTE=remote:${RCLONE_REMOTE_PATH}
RCLONE_CONFIG_CRYPT_PASSWORD=${RCLONE_CRYPT_PASSWORD}
RCLONE_CONFIG_CRYPT_PASSWORD2=${RCLONE_CRYPT_SALT}

View File

@ -9,7 +9,7 @@ Type=oneshot
SyslogIdentifier=%N
EnvironmentFile=%E/coreos-home-server/rclone/rclone.env
ExecStart=/bin/podman run --rm --env-file %E/coreos-home-server/rclone/rclone.env \
--volume /%I:/data:z localhost/rclone:latest sync /data ${RCLONE_DEST}
--volume /%I:/data:z localhost/rclone:latest sync /data crypt:%i
[Install]
WantedBy=multi-user.target