coreos-home-server/service/rclone/systemd/rclone-sync@.service
Alex Palaistras f613ce2496 rclone: Fix issues, simplify sync configuration
This commit fixes issues with remote path conflicts in default
configuration, and makes the encrypted transport the default.
2022-02-07 11:34:49 +00:00

16 lines
457 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 crypt:%i
[Install]
WantedBy=multi-user.target