Commit Graph

21 Commits

Author SHA1 Message Date
Motiejus Jakštys 537800ec59 zfsborg: sleep a bit before mounting 2023-09-18 10:06:44 +03:00
Motiejus Jakštys 2c4598ba7b change snapshot dir 2023-09-18 07:51:47 +03:00
Motiejus Jakštys 7ee6a0de71 zfsborg: remove the ${mountpoint}/.snapshot-latest prefix
The path in the filesystem is quite clear from the archive name.
2023-09-15 11:05:05 +03:00
Motiejus Jakštys 30426ad89e zfsborg: mount the tmpfs on all units 2023-09-15 10:10:54 +03:00
Motiejus Jakštys 00a6a27b92 zfsborg: use TemporaryFileSystem for temp snapshots
Otherwise:

Sep 13 00:01:05 vno1-oh2 systemd[1]: Started BorgBackup job -var-lib-1.
Sep 13 00:01:06 vno1-oh2 borgbackup-job--var-lib-1-start[329228]: filesystem 'rpool/nixos/var/lib@autosnap_2023-09-12_21:00:06_hourly' is already mounted
Sep 13 00:01:06 vno1-oh2 borgbackup-job--var-lib-1-start[329209]: umount: /var/lib/.snapshot-latest: not mounted.
Sep 13 00:01:06 vno1-oh2 systemd[1]: borgbackup-job--var-lib-1.service: Main process exited, code=exited, status=32/n/a
Sep 13 00:01:06 vno1-oh2 systemd[1]: borgbackup-job--var-lib-1.service: Failed with result 'exit-code'.
Sep 13 00:01:06 vno1-oh2 systemd[1]: borgbackup-job--var-lib-1.service: Triggering OnFailure= dependencies.
2023-09-13 08:37:35 +03:00
Motiejus Jakštys 2b5b9bc57f samba some progress 2023-09-12 13:31:46 +03:00
Motiejus Jakštys 49d92971c9 pass BORG_HOST_ID correctly 2023-09-12 11:41:45 +03:00
Motiejus Jakštys b204d5532f zfsborg: add BORG_HOST_ID if nics change 2023-09-12 11:30:08 +03:00
Motiejus Jakštys 27d663e63a bugfix in attrset merging 2023-09-11 17:48:08 +03:00
Motiejus Jakštys a522300158 borgbackup: add numbers to jobs 2023-09-11 17:38:18 +03:00
Motiejus Jakštys 5721531486 nitpicking 2023-09-11 17:27:14 +03:00
Motiejus Jakštys 583f74cf3f zfsborg: restructure config
Preparing for 2 repo destinations.
2023-09-11 17:25:12 +03:00
Motiejus Jakštys 8cecf18f43 mount zfs snapshots read-only 2023-07-26 15:36:11 +03:00
Motiejus Jakštys 4522af453b start/stop firewall commands 2023-07-26 15:14:12 +03:00
Motiejus Jakštys ab11ee31f2 vno1-oh2: pass ssh key to borg 2023-07-26 14:49:34 +03:00
Motiejus Jakštys bccefbc4ba split backup dirs to their repos 2023-07-26 12:59:19 +03:00
Motiejus Jakštys 5313a3ffeb users and passwords 2023-07-20 15:02:38 +03:00
Motiejus Jakštys 16a8eff543 small cleanup 2023-07-20 11:56:37 +03:00
Motiejus Jakštys 0f1d12cb34 unitstatus: pre-defined service units now exist 2023-07-20 10:25:53 +03:00
Motiejus Jakštys 1bfd201028 add unitstatus
with some TODOs
2023-07-20 06:58:47 +03:00
Motiejus Jakštys 9b090ff8ae zfsborg 2023-07-20 05:47:21 +03:00