Hi, I would like to know how to restore a backup from erpnext.com hosted to my VM?
Thanks!
Hi
You can use backup page ( /desk#backups ) and download database file
then restore this file to your VM
bench --site [sitename]--force restore [backup file]
1 Like
Hi
[sitename] you can check in frappe-bench\sites
frappe-bench\sites\currentsite.txt => check this,
or [sitename] of VM I remember is ‘erpnext.vm’
Hi
backup from erpnext.com hosted to my VM
=> from erpnext hosted app you just download backup database file at /desk#backups page
When you have backup database file you restore this database to your VM
so you don’t need to get this information from erpnext.com hosted app.
I’m correct?
Now I got this error after using bench --site blabla.vm --force restore blabla
ERROR: Can't initialized batch_readline - may be the input source is a directory or a block device.
Database not installed, this can due to lack of permission, or that the database name exist.
Check your mysql root password, or use --force to reinstall.
Hi
Pls make sure
- your site is name : blabla.vm ?
- blabla is correct path and correct file name of sql file?
The command run successfully without site option. Thanks!
1 Like