rclone: Copy symbolic links verbatim

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.
This commit is contained in:
Alex Palaistras 2022-02-17 21:53:09 +00:00
parent 03b5f7ee24
commit 53e7fcd1cb
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Common configuration. # Common configuration.
RCLONE_LOG_LEVEL=INFO RCLONE_LOG_LEVEL=INFO
RCLONE_SKIP_LINKS=true RCLONE_LINKS=true
# Configuration for default encrypted remote, configured to wrap the default unencrypted remote. # Configuration for default encrypted remote, configured to wrap the default unencrypted remote.
# Password and salt values must be processed via `rclone obscure` before setting. # Password and salt values must be processed via `rclone obscure` before setting.

View File

@ -7,8 +7,10 @@ ConditionDirectoryNotEmpty=/%I
[Service] [Service]
Type=oneshot Type=oneshot
SyslogIdentifier=%N SyslogIdentifier=%N
Environment=DESTINATION=crypt:%i
ExecStart=/bin/podman run --rm --env-file %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 --volume /%I:/data:z localhost/rclone:latest \
sync /data ${DESTINATION}
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target