add borg client to nfss

This commit is contained in:
Yan Lin 2026-01-19 11:17:32 +01:00
parent fc27554c7f
commit 364bd36c24
3 changed files with 24 additions and 1 deletions

View file

@ -5,6 +5,7 @@
../system-default.nix
../../../modules/tailscale.nix
../../../modules/podman.nix
../../../modules/borg/client.nix
../../../modules/login-display.nix
../../../modules/media-server.nix
../../../modules/samba.nix
@ -146,4 +147,20 @@
user = "yanlin";
};
# Borg backup configuration
services.borg-client-custom = {
enable = true;
repositoryUrl = "ssh://borg-server/./nfss";
backupPaths = [
"/var/lib/mongodb"
];
backupFrequency = "*-*-* 01:00:00";
retention = {
keepDaily = 7;
keepWeekly = 4;
keepMonthly = 6;
keepYearly = 2;
};
};
}