diff --git a/users/modules/restic-backup.nix b/users/modules/restic-backup.nix index e8c6c6a..65dae9d 100644 --- a/users/modules/restic-backup.nix +++ b/users/modules/restic-backup.nix @@ -13,7 +13,7 @@ resticCmd = "${pkgs.restic}/bin/restic"; 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; defaultPruneOpts = [ "--keep-hourly 5" @@ -61,7 +61,7 @@ in { Type = "oneshot"; ExecStart = [ # 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 }" # Prune old backups to keep the repo tidy