run all backup tasks in a slice
This commit is contained in:
parent
d351573a3b
commit
4c54a80122
6 changed files with 61 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Slice=backup.slice
|
||||
User={{ item.user | default('root') }}
|
||||
Group={{ item.group | default('backups') }}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "log line 1"
|
||||
echo "log line 2"
|
||||
echo "log line 3"
|
||||
echo "log line 4"
|
||||
echo "log line 5"
|
||||
echo "log line 6"
|
||||
Loading…
Add table
Add a link
Reference in a new issue