Solved

batch file for backup

Posted on 2011-03-17
6
223 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:nibby
6 Comments
 
LVL 9

Expert Comment

by:djpazza
ID: 35155436
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
 
LVL 9

Expert Comment

by:djpazza
ID: 35155450
0
 
LVL 8

Expert Comment

by:bright12
ID: 35155700
You can also use the following free backup software

http://www.educ.umu.se/~cobian/cobianbackup.htm
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 2

Expert Comment

by:hari_b85
ID: 35277743
Bacth can execute a copy from an IP address too.
Wht error are you receiving while you run the above mentioned script.
0
 
LVL 2

Expert Comment

by:hari_b85
ID: 35292986
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
 
LVL 8

Accepted Solution

by:
subhashchy earned 500 total points
ID: 35380158
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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question