coreos-home-server/service/rclone/systemd/rclone-pull@.service

16 lines
460 B
Desktop File

[Unit]
Description=Rclone Pull for /%I
Wants=container-build@rclone.service
After=container-build@rclone.service
ConditionDirectoryNotEmpty=!/%I
[Service]
Type=oneshot
SyslogIdentifier=%N
Environment=SOURCE=crypt:%i
ExecStartPre=/bin/install --mode 0700 -d /%I
ExecStart=/bin/podman run --rm --env-file %E/coreos-home-server/rclone/rclone.env --user root --volume /%I:/data:z localhost/rclone:latest sync ${SOURCE} /data
[Install]
WantedBy=multi-user.target