dotfiles.nix/nixos/viridian/services/borgbackup/default.nix
2024-09-20 20:24:55 +08:00

34 lines
649 B
Nix

{...}: {
services.borgbackup.jobs = {
containers = {
paths = [
"/srv/containers"
];
encryption.mode = "none";
repo = "/srv/backup/containers";
compression = "auto,zstd";
startAt = "daily";
};
services = {
paths = [
"/srv/services"
];
encryption.mode = "none";
repo = "/srv/backup/services";
compression = "auto,zstd";
startAt = "daily";
};
shares = {
paths = [
"/srv/shares"
];
encryption.mode = "none";
repo = "/srv/backup/shares";
compression = "auto,zstd";
startAt = "daily";
};
};
}