AVAMAR Pre-backup Script to Mount Remote Shares on Celerra NAS

March 5, 2009 | Filed Under Backups, My Notes | 4,228 views 

When backuping shares on my Celerra using AVAMAR without a ndmp backup accelerator node I have to create a backup policy that connects to an avamar client on one of my servers and then runs a pre backup script to map a network drive to the remote share.

The script is just a .bat file that uses the NET USE command to map a network drive to the share on the Celerra.  This worked fine, except I noticed that only files with read access for everyone were being backed up.  All of my user profile or home directories were returning access denied errors.  I did not want to grant everyone access to all files and directories.

To fix this I had to add a username and password to the NET USE command to map the drive as a user that has read access on all directories on the shares.

I created a backup admin user for this and set all files and directories to allow this user read access.

The pre backup script mount_x.bat now looks like this:

net use /delete X:
net use X: \\NAS\Share /USER:Domain\backupadmin password

Once the backup is complete I then run a post backup script to to remove the mapping with another script umount_x.bat:

net use /delete X:

The scripts have to be in C:\Program Files\avs\etc\scripts\ on the avamar client.

Share and Enjoy:
  • Twitter
  • Facebook
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • del.icio.us
  • Digg
  • Mixx
  • Google Bookmarks
  • Technorati

No related posts.

Comments

5 Responses to “AVAMAR Pre-backup Script to Mount Remote Shares on Celerra NAS”

  1. Gary Atkerson on February 18th, 2010 11:34 am

    I’m doing this exact setup and I’m not for sure that it is working. How does Avamar know to use the drives that were just mapped?? How did you setup the dataset??

  2. Hersey on February 19th, 2010 8:48 am

    In the dataset you have to select enter explicitly, then Select the Windows Filestem Plugin, and then in the Select Files and/or Folders box enter X:/ where X is the drive letter you have mapped in the Pre-script.

    When you set up the policy add the dataset and the client that you want to use to map the drive for the backup.

    Hope this helps.
    Hersey

  3. NY on February 26th, 2010 2:48 pm

    Is doing this supported? Also is there any impact on backup time, restore capability etc. using this method rather than an NDMP Accelerator.

    I like the option of the pre backup script, just want to ensure supportability and functionality

  4. Hersey on February 26th, 2010 3:00 pm

    As far as is it being supported, I am not sure – this solution was one that was suggested by the AVAMAR installer before we had the NDMP accelerator and if I remember using pre and post scripts is documented in Admin guide.

    We now also use an NDMP accelerator to back up a majority of the data on my Celerra. Unfortunately you cannot exclude any files when you use the NDMP accelerator. So when backing up user profile or home directories (which I store on a separate filesystem) I can exclude mp3s and other non-business related files. Saving space and reducing backup time.

    Thanks
    Hersey

  5. nacho on January 12th, 2011 2:37 pm

    Hi, im using avamar for db back up, and i have news for sql guys, they do not support SQL db in multifiles

Leave a Reply




Spam protection by WP Captcha-Free

Welcome

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed. Enjoy!
 

Not into geek stuff? Check out The VABiker.Net or SuffolkSky.com.
 

Why not Follow Me on Twitter?

 

  • Geek Reads

     
    • VMware vSphere 4.1 HA and DRS Technical Deepdive
      This technical guide covers the basic steps needed to create a VMware HA and DRS cluster, but even more important explains the concepts and mechanisms behind HA and DRS which will enable you to make well educated decisions. This book will take you in to the trenches of HA and DRS and will give you the tools to understand and implement e.g. HA admission control policies, DRS resource pools and resource allocation settings.
       
    • Mastering vSphere 4 by Scott Lowe
      Install and manage one or one thousand virtual servers in your enterprise with the latest generation of VMware virtualization software, vSphere 4, and this comprehensive guide.

    • vSphere 4.0 Quick Start Guide
      vSphere 4.0 Quick Start Guide continues from an idea started several years ago by a few engineers. The idea was simple, provide an easy to use reference guide for all level administrators, consultants and architects.