summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-12-29 14:46:21 +0100
committerAlan Pearce2024-12-29 14:46:21 +0100
commit64eccd54a840a924eac98bcfa884d65b19c22636 (patch)
treea0fdc3e7ac5bb055819c16b1ae92cb2859e31ee2
parent6d2e6920358f703356da196f50b47e821f15ffbb (diff)
downloadnixfiles-64eccd54a840a924eac98bcfa884d65b19c22636.tar.lz
nixfiles-64eccd54a840a924eac98bcfa884d65b19c22636.tar.zst
nixfiles-64eccd54a840a924eac98bcfa884d65b19c22636.zip
linde: fix backup scripts
-rw-r--r--system/linde.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/linde.nix b/system/linde.nix
index 1950899f..104a33a2 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -581,8 +581,8 @@ in
       openssh
     ];
     script = ''
-      rdiff-backup --api-version 201 backup ${config.services.gitolite.dataDir} ${hostname}@home.alanpearce.eu::gitolite
-      rdiff-backup --api-version 201 remove increments --older-than 3M ${hostname}@home.alanpearce.eu::gitolite
+      rdiff-backup --api-version 201 backup ${config.services.gitolite.dataDir} ${hostname}@nano.${ts-domain}::gitolite
+      rdiff-backup --api-version 201 remove increments --older-than 3M ${hostname}@nano.${ts-domain}::gitolite
     '';
     serviceConfig.Type = "oneshot";
   };
@@ -595,9 +595,9 @@ in
       openssh
     ];
     script = ''
-      sudo -u paperless ./paperless-manage document_exporter --delete --use-filename-format --no-archive --no-thumbnail --no-progress-bar ./export
-      rdiff-backup --api-version 201 backup ./export ${hostname}@home.alanpearce.eu::paperless
-      rdiff-backup --api-version 201 remove increments --older-than 3M ${hostname}@home.alanpearce.eu::paperless
+      systemd-run --machine=papers sudo -u paperless ./paperless-manage document_exporter --delete --use-filename-format --no-archive --no-thumbnail --no-progress-bar ./export
+      rdiff-backup --api-version 201 backup /srv/paperless/export ${hostname}@nano.${ts-domain}::paperless
+      rdiff-backup --api-version 201 remove increments --older-than 3M ${hostname}@nano.${ts-domain}::paperless
     '';
     serviceConfig = {
       Type = "oneshot";