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