replica: give rclone a home directory
All checks were successful
nixos / nixos (push) Successful in 33s
All checks were successful
nixos / nixos (push) Successful in 33s
rclone looked for one and logged three errors per bucket on every run, though its remotes come from the environment. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
23b9bede43
commit
e27baf32ee
1 changed files with 4 additions and 0 deletions
|
|
@ -55,8 +55,12 @@ in
|
|||
after = [ "network-online.target" ];
|
||||
onFailure = [ "alert-mail@%n.service" ];
|
||||
path = [ pkgs.rclone ];
|
||||
# rclone looks for a home directory even when its remotes come from
|
||||
# the environment
|
||||
environment.HOME = "/var/lib/s3-replicate";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
StateDirectory = "s3-replicate";
|
||||
EnvironmentFile = config.sops.templates."s3-replicate.env".path;
|
||||
TimeoutStartSec = "12h";
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue