bigbird: Add restic rest server

This commit is contained in:
Chandler Swift 2025-06-06 17:17:06 -05:00
parent 318e37e164
commit f937a9b31f
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 30 additions and 1 deletions

28
bigbird/backups.nix Normal file
View file

@ -0,0 +1,28 @@
{pkgs, ...}: {
services.restic.server = {
enable = true;
prometheus = true;
privateRepos = true;
dataDir = "/nas/chandler/backups/restic";
appendOnly = true;
extraFlags = [
"--prometheus-no-auth"
];
};
services.restic.backups = {
remotebackup = {
initialize = true;
environmentFile = "/etc/secrets/restic_env";
passwordFile = "/etc/secrets/restic_pass";
paths = [
"/"
];
repository = "rest:http://bigbird:8000/bert/"; #"b2:chandlerswift-bert-backup/";
pruneOpts = [
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 12"
];
};
};
}