frappe/ERP NEXT on DOCKER

Hi, any chance someone can assist in setting up backups for Frappe_docker and erp next?
i am battling to restore backups created with Duplicati.
currently i am not sure if the error lies in my Duplicati setup, or if it is even possible to make backups of the frappe/erp next installation

Hi @jacobotha777 welcome to the forum :wave:

I cannot assist directly with that, but I can share a link that describes how to get backups generated in ERPNext.

If you have the backups, then you can simply make Duplicati take a backup of that folder.

Otherwise, it looks like it is based on MariaDB for storage.
You can make a backup of a live database, but it is usually recommended to get a “snapshot” of the database first to ensure the copy is in a consistent state. There is documentation for making a backup (aka snapshot) of the database.

You can use the Duplicati option --run-script-before to run a script that creates the backup before returning to Duplicati for the backup process.

If you can share details on that (error messages, etc) then it might be possible to give further guidance.

thank you for the response.
I will work through the suggestion you sent in the meantime.
I am a total newb and found it is a steep learning curve thus far.

my current setup:
windows 10 running Docker desktop
frappe framework with erp next app installed.
Also running duplicati inside Docker desktop.
by default, all these containers run perfectly every time. (I have redone this installation 100 times) :rofl:

I only use Docker desktop’s terminal to run the various input commands.
I DO NOT YET KNOW where and how and even if I should run other types of commands
like Bench. here is an example:

    $ bench - - site site-name - - force restore $PWD/sites/site-name/public/files/ 20160602_78570815_database.sql

the above input does not work in Docker desktop’s terminal.
I also do not know how to log into my frappe_docker site if I use for example
Ubuntu terminal?
guide me with basic steps to access my frappe_docker site in another terminal instead of the docker desktop terminal

The Frappe Forum likely has Frappe expertise. I don’t know if any Duplicati people ever used it. Backing up and restoring any complex application requires very application-specific knowledge. Duplicati people can help with generic Duplicati things. Basically it backs up and restores files…

1 Like