Compare commits
2 Commits
13a59c4657
...
1f8869b3d6
Author | SHA1 | Date |
---|---|---|
coolneng | 1f8869b3d6 | |
coolneng | 1ca6c43c3d |
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue