chore(user/module/restic): change repository address

This commit is contained in:
Malte Tammena 2024-02-08 17:42:17 +01:00
parent 358c7fd01a
commit 1cfb979b94

View file

@ -13,7 +13,7 @@
resticCmd = "${pkgs.restic}/bin/restic"; resticCmd = "${pkgs.restic}/bin/restic";
inherit (config.home) username; inherit (config.home) username;
repository = "rest:http://faunus-ater:8000/${username}"; repository = "s3:https://s3.tammena.me/restic/${username}";
passwordFile = nixosConfig.sops.secrets."restic-backup-${username}".path; passwordFile = nixosConfig.sops.secrets."restic-backup-${username}".path;
defaultPruneOpts = [ defaultPruneOpts = [
"--keep-hourly 5" "--keep-hourly 5"
@ -61,7 +61,7 @@ in {
Type = "oneshot"; Type = "oneshot";
ExecStart = [ ExecStart = [
# Start by backing up every directory requested # Start by backing up every directory requested
"${resticCmd} backup --cache-dir=%C/restic-backups-to-faunus-ater ${ "${resticCmd} backup --retry-lock 5m --cache-dir=%C/restic-backups-to-faunus-ater ${
toString cfg.paths toString cfg.paths
}" }"
# Prune old backups to keep the repo tidy # Prune old backups to keep the repo tidy