Solved

batch file for backup

Posted on 2011-03-17
6
222 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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