• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

VCB Script to backup full VM's in batches

#1
This is the script that I use to backup 36 VM's (full VMDKs) in one evening. I don't have sufficient space on my VCB proxy to mount them all at once so I mount them in batches. I've also configured an email notification if a snapshot fails.

What the script does is mount each virtual machine one by one. Then it will check that the mount was successful and if it wasn't it will try the mount again. If the mount fails, it will send an email notification and then create a blank directory so the script can carry on.

Once the checking is done, the script invokes the TSM command line (dont forget to exclude everything except the MNT folder) and then cleans up the MNT directory so the next batch of machines can be mounted.

To schedule it, I use the Windows Task scheduler service so this takes out any issues with the TSM Scheduler.

I've had this running for about 2 weeks now and it's working great. Hope it can help somebody else.
 

Attachments

Last edited:

Gibson

ADSM.ORG Member
#2
Hello steagu,

As I couldn't use your batch, I wrote my own script in vbscript (with your batch as a good reference).
That solved my problem with VCB backups and storage space :)

When I ran your batch (modified to my environment) it got stuck in a loop at the error handling part.
The snapshot was created, but somehow the batch didn't 'see' the newly created servername folder.
After removing the error handling part, the snapshot was created, the backup worked, and than just exited as soon as the backup finished.
Which caused not starting the next batch...

Don't get me wrong, I'm not saying your script is faulty...
It probably has something to do with the way my VCB environment is set up.

Anyway, thanks a lot for sharing your batch! It sure helped me :D
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 18.4%
  • Keep using TSM for Spectrum Protect.

    Votes: 60 61.2%
  • Let's be formal and just say Spectrum Protect

    Votes: 12 12.2%
  • Other (please comement)

    Votes: 8 8.2%

Forum statistics

Threads
31,688
Messages
135,070
Members
21,703
Latest member
agent0810
Top