mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-18 06:05:09 +00:00
docs: backup command for cron (#1048)
This commit is contained in:
parent
bb1e4bb341
commit
6a1e3f3a20
1 changed files with 3 additions and 2 deletions
|
|
@ -44,10 +44,11 @@ In case of single docker host setup, add crontab entry for backup every 6 hours.
|
|||
Or
|
||||
|
||||
```
|
||||
0 */6 * * * docker compose -p erpnext exec backend bench backup-all-sites > /dev/null
|
||||
0 */6 * * * docker compose -p erpnext exec backend bench --site all backup --with-files > /dev/null
|
||||
```
|
||||
|
||||
Notes:
|
||||
|
||||
- Make sure `docker-compose` or `docker compose` is available in path during execution.
|
||||
- Change the cron string as per need.
|
||||
- In case of docker compose exec set the correct project name
|
||||
- Set the correct project name in place of `erpnext`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue