box: backup to external drive
This commit is contained in:
parent
d99d7c81c5
commit
e10cf7c1ab
@ -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 * * *"; };
|
||||
};
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user