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

View File

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

View File

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