Restore from hosting backup

Hi, I would like to know how to restore a backup from hosted to my VM?


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

What I cannot find is the [sitename]. How to get this information from hosted


[sitename] you can check in frappe-bench\sites

frappe-bench\sites\currentsite.txt => check this,
or [sitename] of VM I remember is ‘erpnext.vm’

Again, how am I going to get this information from hosted app?


backup from 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 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.


Pls make sure

  1. your site is name : blabla.vm ?
  2. blabla is correct path and correct file name of sql file?

The command run successfully without site option. Thanks!

1 Like