2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-09-19 10:39:02 +00:00

docs: backup command for cron (#1048)

This commit is contained in:
Revant Nandgaonkar 2023-01-18 13:16:50 +05:30 committed by GitHub
parent bb1e4bb341
commit 6a1e3f3a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,10 +44,11 @@ In case of single docker host setup, add crontab entry for backup every 6 hours.
Or 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: Notes:
- Make sure `docker-compose` or `docker compose` is available in path during execution.
- Change the cron string as per need. - 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`.