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
nibbyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
subhashchyConnect With a Mentor Commented:
I think there is a typo in DJPazza script..Here it goes.

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



0
 
djpazzaCommented:
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

0
 
djpazzaCommented:
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
bright12Commented:
You can also use the following free backup software

http://www.educ.umu.se/~cobian/cobianbackup.htm
0
 
hari_b85Commented:
Bacth can execute a copy from an IP address too.
Wht error are you receiving while you run the above mentioned script.
0
 
hari_b85Commented:
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.
0
All Courses

From novice to tech pro — start learning today.