haumea/zrepl: switch to rsync.net again
Vladimír Čunát committed
Jun 29, 2024 at 16:59 UTC
6dc7d891439f6a7053184ae48bcb0773ef633b26
2 files changed
+44
-11
build/haumea/zrepl.nix
+20
-11
@@ -82,18 +82,26 @@
82
};
83
84
jobs = [
85
- # XXX: Broken since 2024-01-10?
86
- # (defaultBackupJob // {
87
- # name = "rsyncnet";
88
- # connect = {
89
- # identity_file = "/root/.ssh/id_ed25519";
90
- # type = "ssh+stdinserver";
91
- # host = "zh2543b.rsync.net";
92
- # user = "root";
93
- # port = 22;
94
- # };
95
- # })
85
+ # Covers 20240629+
86
+ (defaultBackupJob // {
87
+ name = "rsyncnet";
88
+ connect = {
89
+ identity_file = "/root/.ssh/id_ed25519";
90
+ type = "ssh+stdinserver";
91
+ host = "zh4461b.rsync.net";
92
+ user = "root";
93
+ port = 22;
94
+ };
95
+ })
96
+ /* rsync.net provides a VM with FreeBSD
97
+ - almost nothing is preserved on upgrades except this "data1" zpool
98
+ $ scp ./zrepl.yml root@zh4461b.rsync.net:/usr/local/etc/zrepl/zrepl.yml
99
+ # pkg install zrepl
100
+ # service zrepl enable
101
+ # service zrepl start
102
+ */
103
104
+ /* Covered 2024: 0212 -- 0629
105
(defaultBackupJob // {
106
name = "hexa";
107
connect = {
@@ -104,6 +112,7 @@
112
port = 22;
113
};
114
})
115
+ */
116
];
117
};
118
};
build/haumea/zrepl.yml
new
+24
@@ -0,0 +1,24 @@
1
+# root@zh4461b.rsync.net:/usr/local/etc/zrepl/zrepl.yml
2
+# zrepl main configuration file.
3
+# For documentation, refer to https://zrepl.github.io/
4
+#
5
+global:
6
+ logging:
7
+ - type: "stdout"
8
+ level: "error"
9
+ format: "human"
10
+ - type: "syslog"
11
+ level: "info"
12
+ format: "logfmt"
13
+
14
+# mostly from https://blog.lenny.ninja/zrepl-on-rsync-net.html
15
+jobs:
16
+ - name: sink
17
+ type: sink
18
+ serve:
19
+ type: stdinserver
20
+ client_identities: [ haumea ]
21
+ recv:
22
+ placeholder:
23
+ encryption: off
24
+ root_fs: "data1"