add borg backup to vps
This commit is contained in:
parent
545af946e3
commit
8fb5147d22
1 changed files with 17 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
../../../modules/tailscale.nix
|
../../../modules/tailscale.nix
|
||||||
../../../modules/podman.nix
|
../../../modules/podman.nix
|
||||||
../../../modules/traefik.nix
|
../../../modules/traefik.nix
|
||||||
|
../../../modules/borg/client.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# GRUB bootloader with UEFI support
|
# GRUB bootloader with UEFI support
|
||||||
|
|
@ -71,4 +72,20 @@
|
||||||
|
|
||||||
services.tailscale-custom.exitNode = true;
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue