mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
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:
parent
03b5f7ee24
commit
53e7fcd1cb
@ -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.
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user