none
mysqldump in powershell RRS feed

  • Question

  • Hi,

    Need to put this in powershell, help please?

    mysqldump -u remote -pr3m0t3@hs hs_db > c:\backup\hs_backup \hs_db_%date:/=%_%time:~0,2%-%time:~3,2%-%time:~6,2%.sql

    • Moved by Bill_Stewart Thursday, December 20, 2018 10:01 PM This is not "translate my code into a different language for me" forum
    Monday, October 29, 2018 8:55 AM

All replies

  • $dtime = [datetime]::Now.ToString('s')
    mysqldump -u remote -pr3m0t3@hs hs_db > "c:\backup\hs_backup\hs_db_$($dtime).sql"


    \_(ツ)_/

    Monday, October 29, 2018 9:00 AM