Move rclone conf to restic.nix

b2-backups
Inex Code 2021-12-21 16:24:51 +03:00
parent 9f54887254
commit 84e0ae01f9
2 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,12 @@ in
passwordFile = "/var/lib/restic/pass";
repository = "rclone:backblaze:${cfg.backblaze.bucket}:/sfbackup";
extraOptions = [ "rclone.args='serve restic --stdio'" ];
rcloneConfigFile = "/root/.config/rclone/rclone.conf";
rcloneConfig = {
type = "b2";
account = cfg.backblaze.accountId;
key = cfg.backblaze.accountKey;
hard_delete = false;
};
initialize = true;
paths = [
"/var"

View File

@ -27,7 +27,6 @@ in
(if cfg.pleroma.enable then "d /var/lib/pleroma 0700 pleroma pleroma - -" else "")
"d /var/lib/restic 0700 restic - - -"
"f+ /var/lib/restic/pass 0400 restic - - ${resticPass}"
"f+ /var/lib/restic/rclone.conf 0400 restic - - ${rcloneConfig}"
"f+ /root/.config/rclone/rclone.conf 0400 root root - ${rcloneConfig}"
(if cfg.pleroma.enable then "f /var/lib/pleroma/secrets.exs 0755 pleroma pleroma - -" else "")
"f+ /var/domain 0444 selfprivacy-api selfprivacy-api - ${domain}"