Forum Discussion

no_name1's avatar
no_name1
Level 5
8 years ago

How to setup backup exec to automate snapshot using pre/post command?

I could not run the script if i used pre/post command on backup exec but the script works if I used it manually on command line. Can anyone provide me some solution? Thanks.

  • If you use the NDMP option in Backup Exec it snaps the volume for you so why are you complicating things by trying to use an external script?

     

10 Replies

  • As Backup Exec uses snapshots itself, what type of data are you backing up which needs a pre-post commend to deal with snapshots?

     

    With regards you issue

    1) The Backup Exec Service accounts must have the correct permissions and not have any of them blocked by Group Policy

    2) You have to make sure thet the pre-post command is being run on the correct server (as BE allows it to run on either BE server or remote server)

    2) try put and echo to output file commands in your script that records both that the script tried to run and the date - then you be able to tell if the script is being called or not - if it is being called you may need to add pipe commands to the ends of your individual script commands to record the status of each command into an output file of some kind

    • no_name1's avatar
      no_name1
      Level 5

      We're trying to automate the snapshot using the pre-post command here's the script that we used --> c:\Putty\plink.exe -ssh (user@netapphostIP) "snap create VOL_test VOL_test-snap" not really sure if plink  can recognize by backup exec to ssh on netapp device.

      • no_name1's avatar
        no_name1
        Level 5

        Running the script manually on backup exec server work fine but when we add the script to pre command it doesn't work.