Running ERPNext on vps

Hi Friends ,

I had installed erpnext on top of windows 10 workstation using OVM and importing ova file available at erpnext.org , However , I need to release it for beta testing to select group of users so i want to move it to VPS , The VPS available to me is ubuntu 18.04 LTS and for virtualization it uses KVM ,

Can some one guide me how do i move my existing setup (erpnext configuration i.e. doc types etc and data (master data) to KVM running on ubuntu 18.04 LTS

O

If you follow the backup procedures you will have all of those things in three files in a directory like this:

frappe-bench
└── sites
	└── yoursitename
      β”œβ”€β”€ private
      β”‚   β”œβ”€β”€ backups
      β”‚   β”‚   β”œβ”€β”€ 20191215_190435-yoursitename-database.sql.gz
      β”‚   β”‚   β”œβ”€β”€ 20191215_190435-yoursitename-files.tar
      β”‚   β”‚   β”œβ”€β”€ 20191215_190435-yoursitename-private-files.tar
      β”‚   └── files
      β”œβ”€β”€ public
      β”œβ”€β”€ site_config.json

So you’re getting 3 compressed files, being, in order: your database, your public files directory and your private files directory.

Note: Your site_config.json does not get backed up, but you will need it. To include it in the backup procedure I copy mine into the directory private/files like so:

frappe-bench
└── sites
	└── yoursitename
      β”œβ”€β”€ private
      β”‚   β”œβ”€β”€ backups
      β”‚   β”‚   β”œβ”€β”€ 20191215_190435-yoursitename-database.sql.gz
      β”‚   β”‚   β”œβ”€β”€ 20191215_190435-yoursitename-files.tar
      β”‚   β”‚   β”œβ”€β”€ 20191215_190435-yoursitename-private-files.tar
      β”‚   └── files
      β”‚       └── site_config.json
      β”œβ”€β”€ public
      β”œβ”€β”€ site_config.json

After restoring, I make a hyperlink to it like this:

       β”œβ”€β”€ site_config.json -> ./private/files/site_config.json

You should be able to install ErpNext in your VPS , restore the backup and find everything starting back up as before.

2 Likes