add borg client to nfss
This commit is contained in:
parent
fc27554c7f
commit
364bd36c24
3 changed files with 24 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue