ESPOCRM 7.3.4-apache failed to backup database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eszuniga
    Junior Member
    • Apr 2024
    • 9

    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:	191
Size:	12.6 KB
ID:	105040​​
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #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.
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #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...