Backup containers

I have ERPNext installed and I would like to make automatic backups of that container so that ERPNext’s configuration and data is saved on an external HDD.
Not sure if I need to backup the containers or volumes.
Any easy solutions to backup docker containers?

Is your data and config bind-mounted from a host folder or is it a docker volume?

If the data and config is bind-mounted from a host folder, then it’s just regular file backups of the host folder and sub-folders.

If it’s a docker volume, then there are a couple of options: