about summary refs log tree commit diff
path: root/hosts/tahoe
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-29 17:12:06 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-30 14:39:49 -0700
commitf37e5d6940228930852d4dd6d1993eb75940dc52 (patch)
tree986d49639a3971d3b1f4c5d1c84662b2b60d8a6f /hosts/tahoe
parentmodules/backup: add a module for rsync (diff)
downloadworld-f37e5d6940228930852d4dd6d1993eb75940dc52.tar.gz
hosts/tahoe: enable rsync-ing backups to rsync.net
Diffstat (limited to 'hosts/tahoe')
-rw-r--r--hosts/tahoe/secrets/rsync.net/ssh-key.agebin0 -> 906 bytes
-rw-r--r--hosts/tahoe/secrets/secrets.nix2
-rw-r--r--hosts/tahoe/services.nix7
3 files changed, 9 insertions, 0 deletions
diff --git a/hosts/tahoe/secrets/rsync.net/ssh-key.age b/hosts/tahoe/secrets/rsync.net/ssh-key.age
new file mode 100644
index 0000000..d7c721a
--- /dev/null
+++ b/hosts/tahoe/secrets/rsync.net/ssh-key.age
Binary files differdiff --git a/hosts/tahoe/secrets/secrets.nix b/hosts/tahoe/secrets/secrets.nix
index f68b410..4325195 100644
--- a/hosts/tahoe/secrets/secrets.nix
+++ b/hosts/tahoe/secrets/secrets.nix
@@ -29,6 +29,8 @@ in
   };
 
   "restic/repo-systems.age".publicKeys = all;
+  "rsync.net/ssh-key.age".publicKeys = all;
+
   "rclone/config.ini.age".publicKeys = all;
   "rclone/gcs_service_account.json.age".publicKeys = all;
 
diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix
index 26ce9f6..a04225e 100644
--- a/hosts/tahoe/services.nix
+++ b/hosts/tahoe/services.nix
@@ -68,6 +68,13 @@ in
       exclude = [ ];
     };
 
+    backup.rsync = {
+      enable = true;
+      timerConfig = { OnCalendar = "00:15"; };
+      sourceDir = "/data/slow/backups/";
+      destination = "de2664@de2664.rsync.net:backups/";
+    };
+
     sendsms.enable = true;
   };