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.
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: