added cron task
This commit is contained in:
parent
f297193f8f
commit
adf38fce9a
11
README.md
11
README.md
@ -1,5 +1,14 @@
|
||||
# scripts
|
||||
# srv-scripts
|
||||
|
||||
Execute `sync.sh` to copy scripts on the server.
|
||||
|
||||
>
|
||||
> `vol-restore` is not yet finished !
|
||||
|
||||
## Cron
|
||||
|
||||
Add this line into the host crontab with `crontab -e`.
|
||||
```
|
||||
# Backup volumes every days at 4am
|
||||
0 4 * * * /usr/local/bin/vol-backup-all
|
||||
```
|
||||
|
@ -40,5 +40,4 @@ if [ -d "volumes" ]; then
|
||||
rm volumes/$DUMP_NAME
|
||||
fi
|
||||
rm /tmp/$BACKUP
|
||||
rm /tmp/sockets-to-exclude
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user