]> Git — Sourcephile - sourcephile-nix.git/blob - servers/losurdo/syncoid.nix
nix: enable nix run servers.$server.install
[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/www" = {
21 sendOptions = "raw";
22 target = "losurdo_nvme/backup/mermet/var/www";
23 };
24 "root@mermet.sourcephile.fr:rpool/var/git" = {
25 sendOptions = "raw";
26 target = "losurdo_nvme/backup/mermet/var/git";
27 };
28 "root@mermet.sourcephile.fr:rpool/var/redis" = {
29 sendOptions = "raw";
30 target = "losurdo_nvme/backup/mermet/var/redis";
31 };
32 "root@mermet.sourcephile.fr:rpool/home/julm/mail" = {
33 sendOptions = "raw";
34 target = "losurdo_nvme/backup/mermet/home/julm/mail";
35 };
36 "root@mermet.sourcephile.fr:rpool/home/julm/log" = {
37 sendOptions = "raw";
38 target = "losurdo_nvme/backup/mermet/home/julm/log";
39 };
40 };
41 };
42 }