From 2b4de0f8023b4c8bf33eaed7262e5ed88613775b Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 25 Feb 2021 12:01:41 +0100 Subject: [PATCH] Add upload limits --- arch-config/.config/systemd/user/restic-backup-home.service | 2 +- arch-config/.config/systemd/user/restic-backup-storage.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch-config/.config/systemd/user/restic-backup-home.service b/arch-config/.config/systemd/user/restic-backup-home.service index e5b9f6d9..0ef95d4c 100644 --- a/arch-config/.config/systemd/user/restic-backup-home.service +++ b/arch-config/.config/systemd/user/restic-backup-home.service @@ -2,6 +2,6 @@ Description=Restic home backup [Service] Type=oneshot -ExecStart=restic backup --verbose --tag systemd-home.timer $BACKUP_EXCLUDES $BACKUP_PATHS +ExecStart=restic backup --verbose --tag systemd-home.timer $BACKUP_EXCLUDES $BACKUP_PATHS --limit-upload=2048 ExecStartPost=restic forget --verbose --tag systemd-home.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-home.conf diff --git a/arch-config/.config/systemd/user/restic-backup-storage.service b/arch-config/.config/systemd/user/restic-backup-storage.service index 57c114d6..634449ea 100644 --- a/arch-config/.config/systemd/user/restic-backup-storage.service +++ b/arch-config/.config/systemd/user/restic-backup-storage.service @@ -2,6 +2,6 @@ Description=Restic storage backup [Service] Type=oneshot -ExecStart=restic backup --verbose --tag systemd-storage.timer $BACKUP_EXCLUDES $BACKUP_PATHS +ExecStart=restic backup --verbose --tag systemd-storage.timer $BACKUP_EXCLUDES $BACKUP_PATHS --limit-upload=2048 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