diff --git a/docs/backup-and-push-cronjob.md b/docs/backup-and-push-cronjob.md index e2c222fd..ce5d8b49 100644 --- a/docs/backup-and-push-cronjob.md +++ b/docs/backup-and-push-cronjob.md @@ -9,10 +9,12 @@ services: entrypoint: ["bash", "-c"] command: - | - bench backup-all-sites - ## Uncomment following to snapshot sites + bench --site all backup + ## Uncomment for restic snapshots. # restic snapshots || restic init # restic backup sites + ## Uncomment to keep only last n=30 snapshots. + # restic forget --group-by=paths --keep-last=30 --prune environment: # Set correct environment variables for restic - RESTIC_REPOSITORY=s3:https://s3.endpoint.com/restic @@ -52,3 +54,5 @@ Notes: - Make sure `docker-compose` or `docker compose` is available in path during execution. - Change the cron string as per need. - Set the correct project name in place of `erpnext`. +- For Docker Swarm add it as a [swarm-cronjob](https://github.com/crazy-max/swarm-cronjob) +- Add it as a `CronJob` in case of Kubernetes cluster. diff --git a/docs/custom-apps.md b/docs/custom-apps.md index 618013e3..8646e86d 100644 --- a/docs/custom-apps.md +++ b/docs/custom-apps.md @@ -24,13 +24,13 @@ export APPS_JSON='[ "branch": "main" } ]' -export APPS_JSON_BASE64=$(echo ${APPS_JSON} | base64 --wrap=0) +export APPS_JSON_BASE64=$(echo ${APPS_JSON} | base64 -w 0) ``` You can also generate base64 string from json file: ```shell -export APPS_JSON_BASE64=$(base64 --wrap=0 /path/to/apps.json) +export APPS_JSON_BASE64=$(base64 -w 0 /path/to/apps.json) ``` Note: