How to move from local to remote server

Hello,

I’ve been running production setup of erpnext v5.1.4 in our local server. Now, we want to completely move it to online vps. Can somebody point the steps for this moving? to completely restore it to new vps…

Thanks

Install on your new vps using the easy install script and restore a local backup

Thanks @pdvyas for reply.
If I fresh install on new vps, it will install latest version. Is it okay to restore local backup as I’m running v5.1.4 now?

Or how can I direct install v5.1.4 on new vps, to avoid different version conflict when restoring local backup?

Thanks again

Just restore and run a bench update, you’ll be on the latest and greatest version.

Do you mean I can safely restore ‘old version’ local backup first to ‘latest version’ on vps without conflict?
After that, do bench update?

Let me confirm the steps, may be useful too for other users:

  1. Fresh install latest version v5.x.x on new server via --setup-production easy way
  2. Take .sql local backup of previous version e.g. v5.1.4
  3. bench --force restore ~/path/xxx.sql
  4. Bench update on new server

Is it correct?

Thanks

Yes, exactly!