Compare commits

..

No commits in common. "1b73bb4c61213813fdc0b948019fd3bf230cbfda" and "77ed8ec4cab445b5dd6d41e080627dc618701f94" have entirely different histories.

7 changed files with 2121 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
[Unit]
Description=Restic home backup
[Service]
Type=oneshot
ExecStartPre=-restic -r $RESTIC_REPOSITORY unlock
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

View File

@ -0,0 +1,7 @@
[Unit]
Description=Backup home with restic daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=Restic storage backup
After=restic-backup-home.service
[Service]
Type=oneshot
ExecStartPre=-restic -r $RESTIC_REPOSITORY unlock
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

View File

@ -0,0 +1,7 @@
[Unit]
Description=Backup storage with restic daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target