diff --git a/hosts/box/default.nix b/hosts/box/default.nix index 6bceb5a..34a958c 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -820,24 +820,18 @@ in }; rsnapshot = { - enable = false; + enable = true; enableManualRsnapshot = true; extraConfig = '' - snapshot_root /backups/snapshots/ + snapshot_root /external/snapshots/ retain daily 7 retain manual 3 - backup_exec date "+ backup of suah.dev started at %c" - backup root@suah.dev:/home/ suah.dev/ - backup root@suah.dev:/etc/ suah.dev/ - backup root@suah.dev:/var/synapse/ suah.dev/ - backup root@suah.dev:/var/dendrite/ suah.dev/ - backup root@suah.dev:/var/hammer/ suah.dev/ - backup root@suah.dev:/var/go-ipfs/ suah.dev/ - backup root@suah.dev:/var/gopher/ suah.dev/ - backup root@suah.dev:/var/honk/ suah.dev/ - backup root@suah.dev:/var/mcchunkie/ suah.dev/ - backup root@suah.dev:/var/www/ suah.dev/ - backup_exec date "+ backup of suah.dev ended at %c" + backup_exec date "+ backup of /media started at %c" + backup /media/ media/ + backup_exec date "+ backup of /media ended at %c" + backup_exec date "+ backup of /var started at %c" + backup /var/ var/ + backup_exec date "+ backup of /var ended at %c" ''; cronIntervals = { daily = "50 21 * * *"; }; }; diff --git a/hosts/box/hardware-configuration.nix b/hosts/box/hardware-configuration.nix index 40a784a..27a3dbe 100644 --- a/hosts/box/hardware-configuration.nix +++ b/hosts/box/hardware-configuration.nix @@ -16,6 +16,11 @@ fsType = "ext4"; }; + "/external" = { + device = "/dev/disk/by-uuid/e73b7f14-a921-4d06-813a-0655583d8948"; + fsType = "ext4"; + }; + "/home" = { device = "rpool/home"; fsType = "zfs";