hotcopy newbie

teckpohteckpoh Member Posts: 271
edited 2009-05-07 in Navision Attain
hi experts,

I tried to backup db using hotcopy...but unfortunately dunno wher to start from.
after read the w1s1ism.pdf i created a cmd file called bak.cmd

Inside bak.cmd containing below lines:

hotcopy
source=C:\Documents and Settings\teckpoh\Desktop\customer.fdb
destination=C:\Documents and Settings\teckpoh\Desktop\autobak
description="testing"
email=tp.wee@domain.net
servername=wtp
user=tpwee
password=mypassword
dbtest=normal
cc=yes
nettype=tcp

i saved it as bak.cmd and put it in the directory which same as hotcopy.exe.
Once i double click on the bak.cmd, the command screen prompted for 2 seconds and dissapear...and i dindn't see any
backup process running. Am not sure whether wat i did was correct or not.
Any advise???? 10s in adv~~

br,
teckpoh

Answers

  • ara3nara3n Member Posts: 9,256
    open command prompt. navigate to the directory where the bak.cmd files is and execute it. You should see what message is shown.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • teckpohteckpoh Member Posts: 271
    hi ara3n/alls,

    below is the outcome when i use command prompt to execute my cmd file.
    ========================================================

    C:\Program FIles\Microsoft Business Solutions-Navision\Database Server>bak.cmd

    C:\Program FIles\Microsoft Business Solutions-Navision\Database Server>HotCopy Source="C:\Documents and Settings\teckpoh\Desktop\myDB.fdb" destination= "C:\Documents and Settings\teckpoh\Desktop\autobak" description= "testing" email = admin@domain.com servername=wtp user=admin password=myPassword dbtest=normal cc=yes nettype=tcp

    Backup Tool for Microsoft Business Solution-Navision i version 4.0 SP1
    Copyright <c> 1987-2005 Microsoft Corporation.

    C:\Program Files\Microsoft Business Solutions-Navision\Database Server>


    After my bak.cmd executed. Nothing occur.. any advise?? 10s in adv...
  • ara3nara3n Member Posts: 9,256
    Please put your code in the cmd file the following way in one line

    hotcopy.exe source="C:\Documents and Settings\teckpoh\Desktop\customer.fdb" destination="C:\Documents and Settings\teckpoh\Desktop\autobak" description="testing" email=tp.wee@domain.net servername=wtp user=tpwee password=mypassword cc=yes nettype=tcp
    

    then run your code.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • teckpohteckpoh Member Posts: 271
    hi Ara3n, 10s for the replied. Now it's working fine ~!! 10s a lots~ :lol::lol:
  • ara3nara3n Member Posts: 9,256
    You are welcome and good luck.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.