fix: address review feedback on backup improvements
- manifests/gitea/dump-cronjob.yaml: Remove --skip-log, --skip-custom-dir, --skip-db flags to make backup complete - manifests/gitea/dump-cronjob.yaml: Replace NFS volume + cleanup container with S3 upload to backup-gitea bucket using MinIO client (mc). 30-day lifecycle set via mc ilm. Uses minio_key/minio_secret from existing gitea-config secret. - hosts/unstable/hosea/default.nix: Replace raw services.restic.backups.albyhub block with greg.backup.jobs.albyhub using the greg.backup module. Remove manual age.secrets.restic-env and age.secrets.restic-pw entries since the greg.backup module declares them.
This commit is contained in:
@@ -60,6 +60,12 @@ in
|
||||
enable = true;
|
||||
tags = [ "home" ];
|
||||
};
|
||||
backup.jobs.albyhub = {
|
||||
src = "/chain/alby";
|
||||
dest = "albyhub";
|
||||
pre = "systemctl stop albyhub || true";
|
||||
post = "systemctl start albyhub";
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
@@ -145,24 +151,6 @@ in
|
||||
};
|
||||
};
|
||||
prometheus.exporters.graphite.enable = true;
|
||||
restic.backups.albyhub = {
|
||||
# AlbyHub LDK node data — must not be snapshotted live
|
||||
paths = [ "/chain/alby" ];
|
||||
environmentFile = config.age.secrets.restic-env.path;
|
||||
passwordFile = config.age.secrets.restic-pw.path;
|
||||
initialize = true;
|
||||
pruneOpts = [
|
||||
"--keep-daily 7"
|
||||
"--keep-weekly 4"
|
||||
"--keep-monthly 12"
|
||||
];
|
||||
backupPrepareCommand = "systemctl stop albyhub || true";
|
||||
backupCleanupCommand = "systemctl start albyhub";
|
||||
timerConfig = {
|
||||
OnCalendar = "02:30";
|
||||
RandomizedDelaySec = "30min";
|
||||
};
|
||||
};
|
||||
# Configure keymap
|
||||
xserver.xkb = {
|
||||
layout = "us";
|
||||
@@ -176,12 +164,6 @@ in
|
||||
file = ../../../secrets/grafana-api-token.age;
|
||||
owner = "grafana";
|
||||
};
|
||||
age.secrets.restic-pw = {
|
||||
file = ../../../secrets/restic-pw.age;
|
||||
};
|
||||
age.secrets.restic-env = {
|
||||
file = ../../../secrets/restic-env.age;
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"grafana-dashboards/system-health.json".text = ''
|
||||
|
||||
Reference in New Issue
Block a user