]> Git — Sourcephile - sourcephile-nix.git/blob - servers/losurdo/syncoid.nix
fail2ban: enable on mermet too
[sourcephile-nix.git] / servers / losurdo / syncoid.nix
1 { pkgs, lib, config, ... }:
2 {
3 services.syncoid = {
4 enable = true;
5 interval = "*-*-* *:15:00";
6 sshKey = "/root/.ssh/id_ed25519";
7 commonArgs = [
8 "--no-sync-snap"
9 "--create-bookmark"
10 ];
11 commands = {
12 "losurdo_nvme/home/julm/work" = {
13 sendOptions = "raw";
14 target = "root@mermet.sourcephile.fr:rpool/backup/losurdo/home/julm/work";
15 };
16 "root@mermet.sourcephile.fr:rpool/var/mail" = {
17 sendOptions = "raw";
18 target = "losurdo_nvme/backup/mermet/var/mail";
19 };
20 "root@mermet.sourcephile.fr:rpool/var/public-inbox" = {
21 sendOptions = "raw";
22 target = "losurdo_nvme/backup/mermet/var/public-inbox";
23 };
24 "root@mermet.sourcephile.fr:rpool/var/www" = {
25 sendOptions = "raw";
26 target = "losurdo_nvme/backup/mermet/var/www";
27 };
28 "root@mermet.sourcephile.fr:rpool/var/git" = {
29 sendOptions = "raw";
30 target = "losurdo_nvme/backup/mermet/var/git";
31 };
32 "root@mermet.sourcephile.fr:rpool/var/redis" = {
33 sendOptions = "raw";
34 target = "losurdo_nvme/backup/mermet/var/redis";
35 };
36 "root@mermet.sourcephile.fr:rpool/home/julm/mail" = {
37 sendOptions = "raw";
38 target = "losurdo_nvme/backup/mermet/home/julm/mail";
39 };
40 "root@mermet.sourcephile.fr:rpool/home/julm/log" = {
41 sendOptions = "raw";
42 target = "losurdo_nvme/backup/mermet/home/julm/log";
43 };
44 };
45 };
46 }