This commit is contained in:
parent
f17345dae8
commit
6d158530c3
@ -20,6 +20,12 @@ git clone https://devops.lty.name/luo/backupd.git /opt/backupd
|
||||
```
|
||||
|
||||
## Configuration
|
||||
>
|
||||
> **Note**
|
||||
>
|
||||
> You have to complete ALL FOLLOWING STEPS to make the script work properly.
|
||||
>
|
||||
|
||||
**Ownership**
|
||||
|
||||
Don't forget to change the ownership of the directory:
|
||||
|
7
backupd.service
Normal file
7
backupd.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=A simple backup script
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/backupd/backupd
|
9
backupd.timer
Normal file
9
backupd.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Run backupd daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 09:00:00 UTC
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user