From 5c71c057de760fa4ba9f1929bb83f667013d0e5e Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 22 Feb 2021 21:37:37 +0100 Subject: [PATCH] Service for /mnt/storage --- .../.config/systemd/user/restic-backup-storage.service | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 arch-config/.config/systemd/user/restic-backup-storage.service diff --git a/arch-config/.config/systemd/user/restic-backup-storage.service b/arch-config/.config/systemd/user/restic-backup-storage.service new file mode 100644 index 00000000..57c114d6 --- /dev/null +++ b/arch-config/.config/systemd/user/restic-backup-storage.service @@ -0,0 +1,7 @@ +[Unit] +Description=Restic storage backup +[Service] +Type=oneshot +ExecStart=restic backup --verbose --tag systemd-storage.timer $BACKUP_EXCLUDES $BACKUP_PATHS +ExecStartPost=restic forget --verbose --tag systemd-storage.timer --group-by "paths,tags" --keep-daily $RETENTION_DAYS --keep-weekly $RETENTION_WEEKS --keep-monthly $RETENTION_MONTHS --keep-yearly $RETENTION_YEARS +EnvironmentFile=%h/.restic/restic-backup-storage.conf