Dolibarr Restorating from old backup

Hi Friends,

I’ve been using dolibarr for a while, however I’ve never had to restore from an old backup. I’m attempting to do so now and facing some problems.

Here’s what I’ve done -

  1. I’ve got the latest backup (the sql file in zip)

  2. I’ve copied all the files from the old dolibarr_documents folder.

  3. I installed Dolibarr on the new system and went through the default installation onto the local server (I.E. the computer itself). All seemed okay, I now open dolibarr from web browser and come to the home screen after selecting default.

  4. I copy my backup (now renamed to mybackupfile.sql) into the mysql5.0.45/bin folder, where mysql.exe exists.

  5. I copy the old dolibarr_documents into the new dolibarr documents, purging everything that was there.

  6. I run cmd with this code -
    c:\dolibarr\bin\mysql\mysql5.0.45\bin\mysql dolibarr -h localhost -P 3306 -u admin -p ***** < mybackupfile.sql

  7. The outcome is this -

What do I do now?

Please excuse me if this is something simple, I’m not sure what I’m doing wrong.

Thank you for your time!

bump. Might be something easy, but still need help!

Hello,

It seems that your mysql command is wrong, at least the system doesn’t understand it.

Can you try c:\dolibarr\bin\mysql\mysql5.0.45\bin\mysql -h localhost -P 3306 -u admin -p ***** dolibarr < mybackupfile.sql
Another option is to import it via phpmyadmin

1 Like

why dont you use PHPMyAdmi ? it would be very convenient i believe ( there are some options to tweek to import ).
Goodluck

1 Like

Thanks for the help. I should have replied earlier about what happened.

The truth is that I don’t have much background in this. At all. The company I am working with is run by 1 man who is using this software, with little understanding on how it runs. Everything runs through this software, and he’s learning accounting while trying to run his company. When I presented this problem to him, he hadn’t taken the time in over a year to understand how to backup/restore dolibarr. It blew my mind.

I believe if you are running this type of open source software it’s important to have a strong foundation in the frameworks, or at the very least use it during off-work hours to tinker and learn while a proven, reliable and supported software runs the company during work hours. Currently, I have the tinker/learning happening during work hours which is blowing my mind.

I left the topic. To this day, I still can’t restore the backup and the company owner is unable to do so either. He did manage to do it on another partition on his computer though.

Thanks