Backup and Restore, production data

Dear all,

i am finding a solution to migrate all existing ERPNext data from server 1 to server 2 (new).
Could you please give me your advise to complete this? a detail steps would be appreciate.

Both servers are running Ubuntu 16.04

Thanks a lot.

  1. Setup new ERPNext instance on server 2.
  2. Download backup (with files) from server 1.
  3. Restore backup file on server 2.

For the command to download and restore backup, check:

Hope this helps.

1 Like

thanks @umair
I’d like to ask some points,

  1. How could i generate a latest backup file? as recent checking, there is only one back file since last month atm, showing as below:
    /backups/20170215_011211_d6023943_database.sql.gz

  2. What is the step “Setup new ERPNext instance on server 2”? Is it creating new site using following instruction,
    https://frappe.github.io/erpnext/install.html

Thanks again.

How could i generate a latest backup file? as recent checking,
there is only one back file since last month atm, showing as below:
/backups/20170215_011211_d6023943_database.sql.gz

Download latest backup from Setup > Download Backup

What is the step “Setup new ERPNext instance on server 2”? Is it creating new site using following instruction,
https://frappe.github.io/erpnext/install.html

For setting up new ERPNext account, check:

2 Likes

Hello Umair,

I tried a simple method. I downloaded a database backup then uploaded it to another fresh server. I ran force restore command and it worked.

But my question is why do I need to run the “Migrate” command as I’ve already got everything? [I tried though, got errors]
And what kinda files are save in this private and public folders? What happens if I don’t restore them to my new server?

Can you help me out here? I’m very new to all this.