Windows XP Community - XPHeads



Scripted Backup Batch Files

microsoft.public.windowsxp.perform_maintain


Reply
  #1 (permalink)  
Old 07-03-2008, 07:01 AM
Orion
 
Posts: n/a
Scripted Backup Batch Files
So I have multiple networks and I need to find an easy way to backup every
computer on each network.

Each network is setup so that I can create a maped network drive Q:

What I want to do is have my management program run a script that will first
run my net use commant ensuring that Q: is up and running and then use
windows backup (ntbackup.exe) to backup all the users on that PC to the Q:
drive

I am completely at a loss right now as to how to do this and any help would
be greatly appreciated

thank you

matt egenes

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-03-2008, 06:58 PM
Michael W. Ryder
 
Posts: n/a
Re: Scripted Backup Batch Files
Orion wrote:
> So I have multiple networks and I need to find an easy way to backup every
> computer on each network.
>
> Each network is setup so that I can create a maped network drive Q:
>
> What I want to do is have my management program run a script that will first
> run my net use commant ensuring that Q: is up and running and then use
> windows backup (ntbackup.exe) to backup all the users on that PC to the Q:
> drive
>
> I am completely at a loss right now as to how to do this and any help would
> be greatly appreciated
>
> thank you
>
> matt egenes
>


You can do the backup without having to map each drive to Q or any other
letter. What I use is 'XCOPY \\computername\drive\directory\*.*
backupdirectory /D /S /R /Y'. This will copy all the files in the
selected directories that are new or changed without requiring user
intervention.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2008, 11:01 PM
Orion
 
Posts: n/a
Re: Scripted Backup Batch Files
So say my batch file would look something like this

net use Q: \\10.250.212.253\FLF01\userdata\%computername% LetMe0ff
(that makes sure that my network drive is mounted, and that its dumping the
files into the directory of the computer)
XCOPY "C:\My Documents\*.*" Q:\ /D /S /H /R /Y

Now I am not sure how xcopy works but will this copy over active/open files
as well?
and will this allow me to restore outlook if the computer crashes.

and can I use a command like echo to make a timestamp file every time I run
the script, something like echo %date% but written to text file of my choice


thank you very much

Orion

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-03-2008, 11:59 PM
Michael W. Ryder
 
Posts: n/a
Re: Scripted Backup Batch Files
Orion wrote:
> So say my batch file would look something like this
>
> net use Q: \\10.250.212.253\FLF01\userdata\%computername% LetMe0ff
> (that makes sure that my network drive is mounted, and that its dumping the
> files into the directory of the computer)
> XCOPY "C:\My Documents\*.*" Q:\ /D /S /H /R /Y
>


That looks right but I am not sure about the net use command as I don't
use it. You could test it to make sure.


> Now I am not sure how xcopy works but will this copy over active/open files
> as well?


It should, unless they are locked. But to make sure I would schedule
the script to run when the computer is inactive.


> and will this allow me to restore outlook if the computer crashes.
>


I don't use Outlook so I don't know about this.


> and can I use a command like echo to make a timestamp file every time I run
> the script, something like echo %date% but written to text file of my choice
>
>

I use the touch command but you could use echo %date% %time% > lastbu to
do the same thing.

> thank you very much
>
> Orion
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:33 PM.








Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74