added cron task
This commit is contained in:
1 parent
f297193f8f
commit
adf38fce9a
3 files changed
+11
-3
No files matched your search
@@ -1,5 +1,14 @@
|
|||||||
# scripts
|
# srv-scripts
|
||||||
|
|
||||||
Execute `sync.sh` to copy scripts on the server.
|
Execute `sync.sh` to copy scripts on the server.
|
||||||
|
|
||||||
|
>
|
||||||
> `vol-restore` is not yet finished !
|
> `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
|
rm volumes/$DUMP_NAME
|
||||||
fi
|
fi
|
||||||
rm /tmp/$BACKUP
|
rm /tmp/$BACKUP
|
||||||
rm /tmp/sockets-to-exclude
|
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user