Migrate my Dolibarr To the Cloud: Difference between revisions

Jump to navigation Jump to search
Line 16: Line 16:


= Step 1 - Backup your old database =
= Step 1 - Backup your old database =
* First step is to backup your 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 generated file.
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:
Note: 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 client software is installed. For this, run the following command:
<source lang="bash">
<source lang="bash">
mysqldump -h ip_of_old_mysql_server -P port_of_old_mysql_server -u user_database -ppassword_database > myoldserverdump.YYYYMMDD.sql
mysqldump -h ip_of_old_mysql_server -P port_of_old_mysql_server -u user_database -ppassword_database > myoldserverdump.YYYYMMDD.sql
</source>
</source>
* Open file myoldserverdump.YYYYMMDD.sql to see if file is complete: File should end with such a line:
 
* Open the generated dump/backup file (name should looks like myoldserverdump.YYYYMMDD.sql) to see if file is complete: File should end with such a line:
<source lang="sql">
<source lang="sql">
-- Dump completed on YYYY-MM-DD HH:mm:ss
-- Dump completed on YYYY-MM-DD HH:mm:ss
</source>
</source>
If yes, record this file in a secured place. It will be required at step 5.


= Step 2 - Copy content of your document files =
= Step 2 - Copy content of your document files =

Navigation menu