Announcement

Collapse
No announcement yet.

ESPOCRM 7.3.4-apache failed to backup database

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ESPOCRM 7.3.4-apache failed to backup database

    Hi, I'm having trouble with the backup database process, I'm have it running on a DOCKER environment and when I try to manually run the backup command: mysqldump --user="$DB_USER" --password="$DB_PASS" "$DB_NAME" > "db.sql" but I got the following error: "mysqldump: command not found".

    I'm also running the backup.sh and got the same error.

    What am I missing?

    Click image for larger version

Name:	image.png
Views:	161
Size:	12.6 KB
ID:	105040​​

  • #2
    Hi eszuniga,

    Please tell me do you run the backup command (not a script) in an EspoCRM container or in a MySQL database container?

    Comment


    • eszuniga
      eszuniga commented
      Editing a comment
      Hi, lazovic, I was running the script, but then I realized that I have the MYSQL on another container, so I runned the backup command "mysqldump --user="dbUserVal" --password="passWordVal" "dbNameVal" > db.sql on MYSQL Container and everithing was ok.

  • #3
    I don't know how you run your docker, but if you have everything in one folder with your docker compose file, files and database, you can simply backup whole directory by running this script: tar -cpzf ./espocrm-`date +%Y-%m-%d`.tar.gz ./espocrm-folder

    Comment

    Working...
    X