How to restore deleted site

Hi there,

I accidentally deleted one of my ERPNext sites, but luckily it was not permanently deleted and was moved to the archive folder. I am wondering how I can retrieve this site from the archive folder.

Any assistance you can provide would be greatly appreciated.

Thank you!

if {archive}/{site}/private/backups has any sql.gz files you can restore latest and move the {site} directory back to {frappe-bench}/sites

yes it dose have, how can i restore, please can you send me step by step guide if possible.

https://discuss.frappe.io/search?q=backup%20restore

Thank got it,
I created a new site and wanted to restore a database from an archive. To do so, I used to create new site , after installing ERPNEXT app I restore DB using the command “bench --site site-name --force restore archived/sites/site-name/private/backups/database-name.gz”. After the database was successfully restored, I copied both the public and private folders into a new folder, and have confirmed that the site is now functioning properly.

I hope this helps to others

2 Likes