Scheduled cron for mysqldump is not working, but runs fine when manually entered

  • Command: mysqldump --user='root' --password='whatever' --all-databases > all_databases.sql


    The command works great when manually run, however when using the scheduled jobs the following error shows. Could it be because I have a $ symbol in my password?


  • I would try escaping each occurrence of $ with backslash.


    password='U\$\$voyager0203'

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

    • Offizieller Beitrag

    If it is OMV4, then root shouldn't need a password and the backup cron job should be using omvadmin with a password.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!