Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XP
accessibility
basics
beta.general
beta.help-and-support
configuration_manage
customize
device_driver.dev
embedded
embedded.techpreview
games
general
hardware
help_and_support
messenger
moviemaker
music
network_web
newusers
perform_maintain
photos
print_fax
security_admin
setup_deployment
video
winlogo
wmi
work_remotely
  
 
date: Thu, 3 Jul 2008 00:01:01 -0700,    group: microsoft.public.windowsxp.perform_maintain        back       


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
date: Thu, 3 Jul 2008 00:01:01 -0700   author:   Orion

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.
date: Thu, 03 Jul 2008 18:58:58 GMT   author:   Michael W. Ryder

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
date: Thu, 3 Jul 2008 16:01:01 -0700   author:   Orion

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
>
date: Thu, 03 Jul 2008 23:59:34 GMT   author:   Michael W. Ryder

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us