truncate history
This commit is contained in:
10
restic/.config/systemd/user/restic-backup.service
Normal file
10
restic/.config/systemd/user/restic-backup.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=borg backup
|
||||
Before=restic-prune.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.bin/restic_backup
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
restic/.config/systemd/user/restic-backup.timer
Normal file
10
restic/.config/systemd/user/restic-backup.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=restic backup
|
||||
|
||||
[Timer]
|
||||
Persistent=true
|
||||
OnCalendar=hourly
|
||||
Unit=restic-backup.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
10
restic/.config/systemd/user/restic-prune.service
Normal file
10
restic/.config/systemd/user/restic-prune.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=prune borg snapshots
|
||||
After=restic-backup.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.bin/restic_prune
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
restic/.config/systemd/user/restic-prune.timer
Normal file
10
restic/.config/systemd/user/restic-prune.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=prune restic snapshots
|
||||
|
||||
[Timer]
|
||||
Persistent=true
|
||||
OnCalendar=daily
|
||||
Unit=restic-prune.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user