Moon Software Forum
Moon Software Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Discussion Forums
 Backup Magic
 Copiaris - How to run a cmd script before backup
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gguinchard
Member

3 Posts

Posted - 22 July 2012 :  14:08:53  Show Profile  Visit gguinchard's Homepage  Reply with Quote
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.

Ahto/Moon Software
Developer

Estonia
1141 Posts

Posted - 29 August 2012 :  15:52:52  Show Profile  Visit Ahto/Moon Software's Homepage  Reply with Quote
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.

Ahto
Go to Top of Page

gguinchard
Member

3 Posts

Posted - 29 August 2012 :  16:23:58  Show Profile  Visit gguinchard's Homepage  Reply with Quote
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 ?
Go to Top of Page

Ahto/Moon Software
Developer

Estonia
1141 Posts

Posted - 12 December 2014 :  20:03:33  Show Profile  Visit Ahto/Moon Software's Homepage  Reply with Quote
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
Go to Top of Page

gguinchard
Member

3 Posts

Posted - 13 December 2014 :  00:36:19  Show Profile  Visit gguinchard's Homepage  Reply with Quote
quote:
Originally posted by Ahto/Moon Software

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.

Thanks for your answer, bette late then never
Go to Top of Page

Ahto/Moon Software
Developer

Estonia
1141 Posts

Posted - 13 December 2014 :  01:05:43  Show Profile  Visit Ahto/Moon Software's Homepage  Reply with Quote
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.

Ahto
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Moon Software Forum © Copyright 1996-2011 Moon Software Go To Top Of Page
Snitz Forums 2000