added autorestic units.
This commit is contained in:
7
autorestic-backup.service
Normal file
7
autorestic-backup.service
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Autorestic backup service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=autorestic backup --verbose --all
|
||||
ExecStartPost=autorestic forget --verbose --all
|
||||
WorkingDirectory=/srv/backups/autorestic
|
||||
7
autorestic-backup.timer
Normal file
7
autorestic-backup.timer
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Backup with autorestic daily
|
||||
[Timer]
|
||||
OnCalendar="*-*-* 03:*:*"
|
||||
Persistent=true
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
6
autorestic-prune.service
Normal file
6
autorestic-prune.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Autorestic backup service (data pruning)
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=autorestic forget --verbose --all --prune
|
||||
WorkingDirectory=/srv/backups/autorestic/
|
||||
7
autorestic-prune.timer
Normal file
7
autorestic-prune.timer
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Prune data from the restic repository monthly
|
||||
[Timer]
|
||||
OnCalendar=monthly
|
||||
Persistent=true
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user