mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
Alex Palaistras
53e7fcd1cb
Symbolic links are now synchronized verbatim (i.e. the links themselves, not their destinations) to allow for restoring our pattern of linking to the latest backup file. In addition, the destination remote and path can now be configured individually in drop-in files, but still default to the encrypted remote.
17 lines
468 B
Desktop File
17 lines
468 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
|
|
Environment=DESTINATION=crypt:%i
|
|
ExecStart=/bin/podman run --rm --env-file %E/coreos-home-server/rclone/rclone.env \
|
|
--volume /%I:/data:z localhost/rclone:latest \
|
|
sync /data ${DESTINATION}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|