added cron task

This commit is contained in:
julien 2025-01-19 18:33:58 +01:00
parent f297193f8f
commit adf38fce9a
3 changed files with 11 additions and 3 deletions

View File

@ -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
```

View File

@ -40,5 +40,4 @@ if [ -d "volumes" ]; then
rm volumes/$DUMP_NAME
fi
rm /tmp/$BACKUP
rm /tmp/sockets-to-exclude
fi

View File

@ -1,3 +1,3 @@
#!/bin/bash
cp sbin/* /usr/local/sbin
cp sbin/* /usr/local/bin