Sitename doesn not exist : while restoring backup


Previously, I mean few days ago, backup & restore process went well. But this time, encounter a error.

root@server:/home/frappe/frappe-bench# bench restore /home/frappe/frappe-bench/sites/sitename/private/backups/20170411_xxx_xxxxxx_database.sql

> sitename does not exist

This should be followed while restore your backup.

  1. First of all, copy or move other website backup to here : frappe-bench/sites/[sitename]/private/backups
  2. then go to: cd /tmp
  3. Unzip files from here: gunzip /home/frappe/frappe-bench/sites/[sitename]/private/backups/[database.sql.gz]
  4. now back to : cd /home/frappe/frappe-bench/
  5. bench --site [sitename] --force restore /home/frappe/frappe-bench/sites/[sitename]/private/backups/[database.sql]

Definitely help you, to easy restore of backups.