Migrate my Dolibarr To the Cloud: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Line 26: Line 26:
Go onto http://www.dolicloud.com and subscribe to create a new instance. Note that creating an instance if free for 15 days.
Go onto http://www.dolicloud.com and subscribe to create a new instance. Note that creating an instance if free for 15 days.


== Get your SFTP Id ==
== Upload documents into DoliCloud ==
Once instance is created, you receive a mail with id to log to your dashboard. You will find onto your DoliCloud dashboard, an area with your SFTP id.
Once instance is created, you receive a mail with id to log to Dolibarr and to log to your dashboard.


With any SFTP software (WinSCP for Windows, Nautilus for most Linux), login
* First, log to your new Dolibarr instance. Go into menu '''Home - System info - Dolibarr - All parameters'''. You will find on line for key '''dolibarr_main_data_root''', the value of full path of directory where documents are stored on DoliCloud instance.
 
* Then log to your new DoliCloud dashboard. You will find an area with your SFTP identifier.
With any SFTP software (WinSCP for Windows, Nautilus for most Linux), login to DoliCloud using SFTP protocol. Copy all documents files and sub-directories you saved from previous step into the DoliCloud document directory.

Revision as of 21:18, 13 June 2012

I use Dolibarr onto another server. How can I migrate to DoliCloud ?

This description works for every users using a MySql database.

Prerequisites

  • Check that you Dolibarr version (you will find it onto logon page) is lower or equals to DoliCloud version (In most cases, it should be true because DoliCloud plan offers the last stable version).

If your local version is old, upgrade first locally to same version than DoliCloud.

Backup your old database

  • First step is to backup your database.

For this, go into menu Home - System tools - Backup. Click to generate a backup file (with mysqldump method). This will launch mysqldump command and show you the command. If you experience problem running this command (for example because your old hosting provider does not allow to run command mysqldump), you can launch the command from any other computer where MySql is installed. For this, run the following command:

mysqldump -h ip_of_old_mysql_server -P port_of_old_mysql_server -u user_database -ppassword_database > mybackupfile.YYYYMMDD.sql
  • Open file mybackupfile.YYYYMMDD.sql to see if file is complete: File should end with such a line:
-- Dump completed on YYYY-MM-DD HH:mm:ss

Copy content of your document files

All uploaded or generated files are stored into the document directory. To know path of this directory, go into menu Home - System info - Dolibarr - All parameters. Full path where all you files are stored is visible on line with key dolibarr_main_data_root. Save this directory and all its content (subdirectories and files).

Create a DoliCloud instance

Go onto http://www.dolicloud.com and subscribe to create a new instance. Note that creating an instance if free for 15 days.

Upload documents into DoliCloud

Once instance is created, you receive a mail with id to log to Dolibarr and to log to your dashboard.

  • First, log to your new Dolibarr instance. Go into menu Home - System info - Dolibarr - All parameters. You will find on line for key dolibarr_main_data_root, the value of full path of directory where documents are stored on DoliCloud instance.
  • Then log to your new DoliCloud dashboard. You will find an area with your SFTP identifier.

With any SFTP software (WinSCP for Windows, Nautilus for most Linux), login to DoliCloud using SFTP protocol. Copy all documents files and sub-directories you saved from previous step into the DoliCloud document directory.