Add upload limits
This commit is contained in:
parent
df809508b2
commit
2b4de0f802
@ -2,6 +2,6 @@
|
|||||||
Description=Restic home backup
|
Description=Restic home backup
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
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
|
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
|
EnvironmentFile=%h/.restic/restic-backup-home.conf
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
Description=Restic storage backup
|
Description=Restic storage backup
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
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
|
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
|
EnvironmentFile=%h/.restic/restic-backup-storage.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user