tsuki: add osu backups w/ restic
This commit is contained in:
parent
8447df4bd7
commit
78ab3ef4b4
2 changed files with 23 additions and 3 deletions
|
@ -48,6 +48,14 @@
|
||||||
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/tsuki";
|
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/tsuki";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
};
|
};
|
||||||
|
"/nas/ISOS" = {
|
||||||
|
device = "192.168.1.199:/mnt/Sutoreji/ISOS";
|
||||||
|
fsType = "nfs";
|
||||||
|
};
|
||||||
|
"/nas/osu-backups" = {
|
||||||
|
device = "192.168.1.199:/mnt/Sutoreji/osu-backups";
|
||||||
|
fsType = "nfs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
|
|
|
@ -4,14 +4,13 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
sops.secrets.restic-tsuki = {sopsFile = ../../../secrets/restic/secrets.yaml;};
|
sops.secrets.restic-tsuki = {sopsFile = ../../../secrets/restic/secrets.yaml;};
|
||||||
|
sops.secrets.restic-osu = {sopsFile = ../../../secrets/restic/secrets.yaml;};
|
||||||
environment.systemPackages = [pkgs.restic];
|
environment.systemPackages = [pkgs.restic];
|
||||||
services.restic = {
|
services.restic = {
|
||||||
backups = {
|
backups = {
|
||||||
tsuki = {
|
tsuki = {
|
||||||
user = "root";
|
user = "root";
|
||||||
paths = [
|
paths = ["/home"];
|
||||||
"/home"
|
|
||||||
];
|
|
||||||
exclude = [
|
exclude = [
|
||||||
"*.qcow2"
|
"*.qcow2"
|
||||||
"*.iso"
|
"*.iso"
|
||||||
|
@ -46,6 +45,19 @@
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
osu = {
|
||||||
|
user = "root";
|
||||||
|
paths = ["/home/*/osu!"];
|
||||||
|
pruneOpts = ["--keep-last=2"];
|
||||||
|
initialize = true;
|
||||||
|
repository = "/nas/osu-backups";
|
||||||
|
passwordFile = config.sops.secrets.restic-osu.path;
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "weekly";
|
||||||
|
RandomizedDelaySec = "30m";
|
||||||
|
Persistent = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue