Compare commits

..

2 Commits

Author SHA1 Message Date
coolneng 1f8869b3d6
Enable automatic ZFS backups to remote server 2021-04-06 15:12:21 +02:00
coolneng 1ca6c43c3d
Add document and website backup vdevs 2021-04-06 15:11:31 +02:00
2 changed files with 43 additions and 18 deletions

View File

@ -31,4 +31,19 @@
"force user" = "coace";
};
};
# ZFS automatic backup solution
services.znapzend = {
enable = true;
pure = true;
zetup."vault" = {
plan = "1h=>10min,1d=>1h,1w=>1d,1m=>1w,1y=>1m";
recursive = true;
destinations.backup = {
host = "10.0.1.4";
dataset = "shield/unit";
plan = "1w=>1d,1m=>1w,1y=>1m";
};
};
};
}

View File

@ -42,8 +42,8 @@
fsType = "zfs";
};
fileSystems."/vault/samba" = {
device = "vault/samba";
fileSystems."/vault/backups" = {
device = "vault/backups";
fsType = "zfs";
};
@ -52,23 +52,13 @@
fsType = "zfs";
};
fileSystems."/vault/VMs/legacy" = {
device = "vault/VMs/legacy";
fileSystems."/vault/config" = {
device = "vault/config";
fsType = "zfs";
};
fileSystems."/vault/backups" = {
device = "vault/backups";
fsType = "zfs";
};
fileSystems."/vault/nextcloud" = {
device = "vault/nextcloud";
fsType = "zfs";
};
fileSystems."/vault/backups/databases" = {
device = "vault/backups/databases";
fileSystems."/vault/samba" = {
device = "vault/samba";
fsType = "zfs";
};
@ -77,8 +67,28 @@
fsType = "zfs";
};
fileSystems."/vault/config" = {
device = "vault/config";
fileSystems."/vault/VMs/legacy" = {
device = "vault/VMs/legacy";
fsType = "zfs";
};
fileSystems."/vault/backups/databases" = {
device = "vault/backups/databases";
fsType = "zfs";
};
fileSystems."/vault/nextcloud" = {
device = "vault/nextcloud";
fsType = "zfs";
};
fileSystems."/vault/backups/documents" = {
device = "vault/backups/documents";
fsType = "zfs";
};
fileSystems."/vault/backups/frontend" = {
device = "vault/backups/frontend";
fsType = "zfs";
};