feat(stdlib): added a basic borg client custom promise
This commit is contained in:
parent
518cbed944
commit
48f2e9a2cb
5 changed files with 174 additions and 1 deletions
15
stdlib/backups/borg/systemd-service-template
Normal file
15
stdlib/backups/borg/systemd-service-template
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=BorgBackup job %s
|
||||
|
||||
[Service]
|
||||
Environment="BORG_REPO=ssh://borg@%s/srv/borg/%s"
|
||||
Environment="BORG_RSH=ssh -i /etc/borg/%s.key"
|
||||
CPUSchedulingPolicy=idle
|
||||
ExecStart=/etc/borg/%s.sh
|
||||
Group=root
|
||||
IOSchedulingClass=idle
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/root/.config/borg
|
||||
ReadWritePaths=/root/.cache/borg
|
||||
User=root
|
Loading…
Add table
Add a link
Reference in a new issue