From 64eccd54a840a924eac98bcfa884d65b19c22636 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 29 Dec 2024 14:46:21 +0100 Subject: linde: fix backup scripts --- system/linde.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'system') 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"; -- cgit 1.4.1