Link to home
Start Free TrialLog in
Avatar of nibby
nibby

asked on

batch file for backup

I have an external drive that I would like to make a copy of on a regular basis. I have shared the external drive and want to create a batch file on another computer to make a backukp.
Is it possible to tell the batch file to backup from an IP address and not give it a computer name?

At the moment one of my other batch files looks like below. I have tried replacing the name with the ip address but nothing.

rem set backu location
set dest=l:\typing

rem set source to backup
set source=\\exchts\d\typing

thanks
Avatar of djpazza
djpazza

if the ip was 192.168.2.100 then

 
rem set backu location
set dest=l:\typing

rem set source to backup
set source=\\192.168.2.100\d\typing

copy source dest

Open in new window

Avatar of bright12
You can also use the following free backup software

http://www.educ.umu.se/~cobian/cobianbackup.htm
Bacth can execute a copy from an IP address too.
Wht error are you receiving while you run the above mentioned script.
you can also use a command "Robocopy" which will copy the updated data and will reduce the time to copy also.
Do let me know in case of any help required.
ASKER CERTIFIED SOLUTION
Avatar of subhashchy
subhashchy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial