[Backup] Hotcopy bat file

Aure69Aure69 Member Posts: 30
Hi,

I try to use hotcopy for the first time. I tried to do the following .bat file :
c:
cd\Program Files\Microsoft Business Solutions-Navision\Database Server\
HotCopy.exe source=C:\Program Files\Microsoft Business Solutions-Navision\Bocage_Prod\Boc_Prod.fdb destination=C:\Program Files\Microsoft Business Solutions-Navision\Bocage_Prod\Backup Server=BOCPROD user=admin password=prod  dbtest=minimum

When I launch it I only see the prompt which opens and closes so quickly I cannot read any message. It seems that nothing happens. I had a look at the Navsion documentation but I don't see what is wrong with my bat.

Do you have any idea of what could be wrong ? Thanks in advance.
Business Analyst
Incadea (Vertical solution for the automotive market based on Nav 2.60)
French speaking European/African/Indian Ocean countries.

Comments

  • jmjm Member Posts: 156
    Hi,

    I don't know what is wrong in .bat file, but if you append
    pause
    
    you should see the error.

    br
    Josef Metz
    br
    Josef Metz
  • DenSterDenSter Member Posts: 8,304
    Also, if you run a *.bat file from a command prompt, it will display the messages but it won't close.
  • kinekine Member Posts: 12,562
    I highly recommend to use Backup Description file to set the parameters instead command line parameters. See Documentation for this. It will remove some problems...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Aure69Aure69 Member Posts: 30
    Thanx Denster, that's what I have done, it seems that I have a wrong character

    See the screenshot :
    http://img272.imageshack.us/my.php?image=hotcopyerror10kn.gif
    kine wrote:
    I highly recommend to use Backup Description file to set the parameters instead command line parameters. See Documentation for this. It will remove some problems...
    OK I've seen it, I will try to do so.
    Business Analyst
    Incadea (Vertical solution for the automotive market based on Nav 2.60)
    French speaking European/African/Indian Ocean countries.
  • Timo_LässerTimo_Lässer Member Posts: 481
    Aure69 wrote:
    [...]
    c:
    cd\Program Files\Microsoft Business Solutions-Navision\Database Server\
    HotCopy.exe source=C:\Program Files\Microsoft Business Solutions-Navision\Bocage_Prod\Boc_Prod.fdb destination=C:\Program Files\Microsoft Business Solutions-Navision\Bocage_Prod\Backup Server=BOCPROD user=admin password=prod  dbtest=minimum
    
    [...]
    The error seems to be here:
    c:
    cd\Program Files\Microsoft Business Solutions-Navision\Database Server\
    HotCopy.exe [...]
    
    It should be
    cd c:\Program Files\Microsoft Business Solutions-Navision\Database Server\
    
    HotCopy.exe [...]
    
    As you can see in your screenshot, all commands will be executed in the directory "C:\Program Files\Microsoft Business Solutions-Navision\tunesi"

    Further more, I suggest that you will put your commands in " :
    [...]
    HotCopy.exe source="C:\Program Files\Microsoft Business Solutions-Navision\Bocage_Prod\Boc_Prod.fdb" destination="C:\Program Files\Microsoft Business Solutions-Navision\Bocage_Prod\Backup" Server=BOCPROD user=admin password=prod  dbtest=minimum
    [...]
    
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • Aure69Aure69 Member Posts: 30
    Thank you Timo, that works :D
    Business Analyst
    Incadea (Vertical solution for the automotive market based on Nav 2.60)
    French speaking European/African/Indian Ocean countries.
Sign In or Register to comment.