From a8aadba1df4c08553fabaf2945b5b9290f5a07f7 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 24 Oct 2022 17:05:52 +0100 Subject: update --- systemd/backup_budget.service | 9 --------- systemd/backup_budget.timer | 12 ------------ systemd/backup_documents.service | 9 +++++++++ systemd/backup_documents.timer | 12 ++++++++++++ 4 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 systemd/backup_budget.service delete mode 100644 systemd/backup_budget.timer create mode 100644 systemd/backup_documents.service create mode 100644 systemd/backup_documents.timer (limited to 'systemd') diff --git a/systemd/backup_budget.service b/systemd/backup_budget.service deleted file mode 100644 index 2504b36..0000000 --- a/systemd/backup_budget.service +++ /dev/null @@ -1,9 +0,0 @@ -# must be symlinked from ~/.config/systemd/user -[Unit] -Description=Backup budget directory to git-annex - -[Service] -# User=lemon -# Group=lemon -Type=oneshot -ExecStart=/home/lemon/bin/backup_budget_annex.sh > /dev/null 2>&1 diff --git a/systemd/backup_budget.timer b/systemd/backup_budget.timer deleted file mode 100644 index 94b4eb5..0000000 --- a/systemd/backup_budget.timer +++ /dev/null @@ -1,12 +0,0 @@ -# must be symlinked from ~/.config/systemd/user -[Unit] -Description=Backup budget timer - -[Timer] -# run 10m after boot -OnBootSec=10m -# then every hour -OnUnitActiveSec=1h - -[Install] -WantedBy=timers.target diff --git a/systemd/backup_documents.service b/systemd/backup_documents.service new file mode 100644 index 0000000..e690dbf --- /dev/null +++ b/systemd/backup_documents.service @@ -0,0 +1,9 @@ +# must be symlinked from ~/.config/systemd/user +[Unit] +Description=Backup budget directory to git-annex + +[Service] +# User=lemon +# Group=lemon +Type=oneshot +ExecStart=/home/lemon/bin/backup_documents_annex.sh > /dev/null 2>&1 diff --git a/systemd/backup_documents.timer b/systemd/backup_documents.timer new file mode 100644 index 0000000..44cb6a5 --- /dev/null +++ b/systemd/backup_documents.timer @@ -0,0 +1,12 @@ +# must be symlinked from ~/.config/systemd/user +[Unit] +Description=Backup documents timer + +[Timer] +# run 10m after boot +OnBootSec=10m +# then every hour +OnUnitActiveSec=2h + +[Install] +WantedBy=timers.target -- cgit v1.2.3