ERPNext-Docker backup

Hello together.
I have been very unsuccesfully trying to backup ERPNext which is running within docker.
It starts by kicking off the backup, It really needs me to execute “Bench backup” within every container? I am looking for a more… wholesome backup.

The backup should not remain on the on the host machine in the end, but for now bundling it together and getting it out of the container is still a problem for me.

Is there an obviously easy way that I am missing?

You need to execute something like this with a cron https://github.com/castlecraft/custom_containers/blob/main/compose/erpnext-backup.yml

You can do it with simple crontab for a single vm, swarm-cron for docker swarm or cronjob for Kubernetes.

Docs: https://github.com/frappe/frappe_docker/blob/main/docs/backup-and-push-cronjob.md

3 Likes

How didn’t I see this before…
Thanks a lot! That just solved my Problem.
Have a good day Sir!
Cheers

1 Like