carbon: restic backup

This commit is contained in:
Primrose 2024-08-04 18:44:56 +02:00
parent 35c1ea0822
commit a4594e5b5a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
7 changed files with 51 additions and 31 deletions

View file

@ -1,35 +1,16 @@
{
# mount follows the permission of the mount points
systemd.tmpfiles.rules = [
"d /mnt/data 0700 leana leana - -"
"d /mnt/pny-backup 0700 leana leana - -"
];
systemd.tmpfiles.rules = [ "d /mnt/data 0700 leana leana - -" ];
fileSystems = {
"/mnt/data" = {
device = "10.0.0.20:/mnt/mainPool/data";
fsType = "nfs";
options = [
"ro"
"noauto"
"x-systemd.automount"
"x-systemd.idle-timeout=30min"
"x-systemd.device-timeout=5s"
"x-systemd.mount-timeout=5s"
];
};
# PNY CS900 SSD
"/mnt/pny-backup" = {
device = "/dev/disk/by-uuid/4d1bc604-5cf6-45ce-8c02-59128a95f3cd";
fsType = "ext4";
options = [
"noauto"
"x-systemd.automount"
"x-systemd.idle-timeout=10min"
"x-systemd.device-timeout=5s"
"x-systemd.mount-timeout=5s"
];
};
fileSystems."/mnt/data" = {
device = "10.0.0.20:/mnt/mainPool/data";
fsType = "nfs";
options = [
"ro"
"noauto"
"x-systemd.automount"
"x-systemd.idle-timeout=30min"
"x-systemd.device-timeout=5s"
"x-systemd.mount-timeout=5s"
];
};
}