Skip to content

Commit

Permalink
docs: update backup docs (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
revant authored Feb 17, 2023
1 parent 0228f06 commit bcf41ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docs/backup-and-push-cronjob.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
4 changes: 2 additions & 2 deletions docs/custom-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bcf41ff

Please sign in to comment.