I need to launch a cmd file before backup, to export a database. It was easy in Magic, but with Copiaris, I do'nt find how. I have bought the product, so I have all options.
You basically add new "Process task" into your script and there you specify command line to execute. You can add this task into any place, either before or after your main copy task, or between several copy tasks.
Thanks for your reply, but there is still another problem. THe script, when launceh "by hand" works fine. When launched by the process task, it goes out without waiting end of the process, I did check "wait for completion". Some idea of what is happening ?
When executing some commands it helps if you start your command line with
cmd /c <your command line>
So likely you need to use
cmd /c yourfile.cmd
Oh"yes, I was using : cmd.exe /c "C:\usr\local\bin\StopSELECTLINE_SQL.cmd" since a moment ... and in the cmd, I have a line in the beginning to stop SQL: net stop MSSQL$SELECTLINE So I can quietely copy the database files on a NAS without risking that they are on use.
That is good you got it working, on some reason I had not replied to your question earlier. Copiaris also support VSS to copy in use files, not sure how well MYSQL supports it, though.