From 6a1e3f3a204edbe03755824fa053ea0aa0cc2fee Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Wed, 18 Jan 2023 13:16:50 +0530 Subject: [PATCH] docs: backup command for cron (#1048) --- docs/backup-and-push-cronjob.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/backup-and-push-cronjob.md b/docs/backup-and-push-cronjob.md index 8ee7c891..e2c222fd 100644 --- a/docs/backup-and-push-cronjob.md +++ b/docs/backup-and-push-cronjob.md @@ -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`.