Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

batch file for backup

Posted on 2011-03-17
6
Medium Priority
?
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
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 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

715 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