mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add description for daily backup cronjob
This commit is contained in:
parent
4c2a609f92
commit
2dccc325cf
@ -231,3 +231,32 @@ This opens the `crontab` in edit-mode and insert the following entry:
|
|||||||
```bash
|
```bash
|
||||||
0 4 * * * find /tmp -name "yarn--*" -ctime +1 -exec rm -r {} \; > /dev/null
|
0 4 * * * find /tmp -name "yarn--*" -ctime +1 -exec rm -r {} \; > /dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Define Cronjob To start backup script automatically
|
||||||
|
|
||||||
|
At least at production stage we need a daily backup of our database. This can be done by adding a cronjob
|
||||||
|
to start the existing backup.sh script.
|
||||||
|
|
||||||
|
### On production
|
||||||
|
|
||||||
|
To check for existing cronjobs for the `gradido` user, please
|
||||||
|
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
crontab -l
|
||||||
|
```
|
||||||
|
|
||||||
|
This show all existing entries of the crontab for user `gradido`
|
||||||
|
|
||||||
|
To install/add the cronjob for a daily backup at 3:00am please
|
||||||
|
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
crontab -e
|
||||||
|
```
|
||||||
|
and insert the following line
|
||||||
|
```bash
|
||||||
|
* 3 * * * ~/gradido/deployment/bare_metal/backup.sh
|
||||||
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user