Fix(Choux): borg backup from cron to systemd timer
This commit is contained in:
10
files/choux_borg.service
Normal file
10
files/choux_borg.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Borg Backup
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Nice=19
|
||||
IOSchedulingClass=2
|
||||
IOSchedulingPriority=7
|
||||
ExecStartPre=/usr/bin/borg break-lock {{ borg_backup_repo }}
|
||||
ExecStart={{ borg_script_path }}
|
||||
11
files/choux_borg.timer
Normal file
11
files/choux_borg.timer
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Borg Backup Timer
|
||||
|
||||
[Timer]
|
||||
WakeSystem=false
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
RandomizedDelaySec=10min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user