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