Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > backup and recover network shares somehow? 2008 r2

Reply
Thread Tools Display Modes

backup and recover network shares somehow? 2008 r2

 
 
markm75g
Guest
Posts: n/a

 
      05-25-2010
Is there a way, to make a backup of a network share in 2008 r2, then delete
the share, but run a command to recreate it, maybe outside of windows backup?

I use DPM 2010, but it fails to recreate the share if you do the restore, it
only recreates the folder, not the actual share.

What would be the easiest way to do this.. maybe self contained on the
server itself, so that when i run the dpm backup of the server or virtual
server, it could be restored if need be?

Thanks


 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      05-25-2010


"markm75g" <> wrote in message
news:37C6A72F-1207-419C-B9B8-...
> Is there a way, to make a backup of a network share in 2008 r2, then
> delete
> the share, but run a command to recreate it, maybe outside of windows
> backup?
>
> I use DPM 2010, but it fails to recreate the share if you do the restore,
> it
> only recreates the folder, not the actual share.
>
> What would be the easiest way to do this.. maybe self contained on the
> server itself, so that when i run the dpm backup of the server or virtual
> server, it could be restored if need be?
>
> Thanks
>
>


The command "net share" will enumerate all existing shares. The command

net share "User Files"=d:\UserFiles

will create a share. To process the output from the "net share" command and
turn it into a number of commands that will recreate shares would require a
small amount of scripting.

The alternative is to extract the shares information from
hklm/system/currentcontrolset/services/lanmanserver/shares, then use it when
recreating the shares.

 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista32, new driver? & USB Mouse/Keyboard not working Scott J. Stringfellow Windows Vista Hardware 27 04-01-2010 05:22 PM
Same Issue....Please help! Quality Department Active Directory 0 02-13-2010 01:12 PM
How to Recover Data from Vista's Backup Application hastalavista Windows Vista File Management 1 02-07-2008 05:15 AM
cloning laptop sata harddrive vista premium Mark Ryan Windows Vista Hardware 5 04-26-2007 06:44 PM
Seeking information on Shadow Copy vs. Backup & Restore. I'm conf DRUAngell Windows Vista Performance 7 03-26-2007 11:05 PM



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