add borg backup to vps

This commit is contained in:
Yan Lin 2026-02-10 19:41:12 +01:00
parent 545af946e3
commit 8fb5147d22

View file

@ -9,6 +9,7 @@
../../../modules/tailscale.nix
../../../modules/podman.nix
../../../modules/traefik.nix
../../../modules/borg/client.nix
];
# GRUB bootloader with UEFI support
@ -71,4 +72,20 @@
services.tailscale-custom.exitNode = true;
# Borg backup configuration
services.borg-client-custom = {
enable = false;
repositoryUrl = "ssh://borg-box/./vps";
backupPaths = [
"/var/lib/mongodb"
];
backupFrequency = "*-*-* 03:00:00";
retention = {
keepDaily = 7;
keepWeekly = 4;
keepMonthly = 6;
keepYearly = 2;
};
};
}