mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +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.
16 lines
463 B
Desktop File
16 lines
463 B
Desktop File
[Unit]
|
|
Description=Rclone Sync for /%I
|
|
Wants=container-build@rclone.service
|
|
After=container-build@rclone.service
|
|
ConditionDirectoryNotEmpty=/%I
|
|
|
|
[Service]
|
|
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}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|