I had a v13 ERPNext running on my server. I crashed the server, deleted some files accidentally and had a hard time trying to restore it. Luckily I had taken a full backup of the site with:
bench backup --with-files
I downloaded the backups into my local computer and clean wiped the server, installed fresh Ubuntu 20.04. I followed this link to install fresh Frappe app.
I have installed frappe successfully with:
bench init /home/sammy/frappe-bench --frappe-path GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --frappe-branch version-13 --python python3
Now my next step (if I wanted a fresh ERPNext) would be:
bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) --branch version-13
and then
bench new-site your_domain --admin-password âerpnext_admin_passwordâ --mariadb-root-username sammy --mariadb-root-password âmariadb_passwordâ
followed by:
bench --site your_domain install-app erpnext
bench start
But since I need the older instance, ( I have downloaded a backup of older instance. Backup was generated by bench backup --with-files)
How can I successfully restore my old installation with files, sql, database keeping in mind the database name, pwd, etc into the new installation ?
Is it safe to follow example 1 of this link ?
I found a lot of similar previous questions but none explains at what point I should import the old installation files.
Is this the correct method ?
I also found this one:
I need a suggestion on these steps so that everything works like the old installation.