TSM 6.3: Backup and Restore VMware Virtual Machine Part 2


Continue with the Part 1, TSM vCenter plugin is easy to use especially for someone who has little knowledge of TSM. The user can easily set up a scheduled or run-now backup job by following the wizard. The downside of the TSM vCenter plugin is that it is not flexible enough. For example, you are not able to set up a job that only backs up the virtual machines under a particular folder.

Therefor, I would suggest to define the schedule on the TSM server which is relatively flexible. To support my opinion, I will give some configuration examples which I have tested in my environment.

Example 1: Daily incremental backup job of  the virtual machine under Exchange and SQL folder in vCenter.

define sched vmware Daily_Incr Desc=’Daily Incremental Backup of Exchange and SQL VM’ Action=Backup Subaction=VM OPTions=’-vmfulltype=vstor -vmbackuptype=fullvm -asnodename=VC1_DC1 -domain.vmfull=”vmfolder=Exchange,SQL” -MODE=INCRemental’  day=Weekday startt=20:00

image

Example 2: Weekly full backup job of the virtual machines under the Exchange and SQL folder in vCenter.  The job runs on every second, third, fourth, last (if any) Saturday of each month.

define sched vmware Weekly_Full Schedstyle=Enhanced Desc=’Weekly Full Backup of Exchange and SQL VM’ Action=Backup Subaction=VM OPTions=’-vmfulltype=vstor -vmbackuptype=fullvm -asnodename=VC1_DC1 -domain.vmfull=”vmfolder=Exchange,SQL” -MODE=FULL’ DAYofweek=Saturday WEEKofmonth=’Second,Third,Fourth,Last’ startt=00:00:00

image

Example 3: Monthly archive (use –vmmc to decide the management class) the virtual machines running on host-01 and host-02. The jobs runs on every first Saturday of each month.

define sched vmware Monthly_Archive Schedstyle=Enhanced Desc=’Host 01 02 Monthly Full Backup – Archive for 1 year’  Action=Backup Subaction=VM OPTions=’-vmfulltype=vstor -vmbackuptype=fullvm -asnodename=VC1_DC1 -vmmc=Monthly -domain.vmfull=”VMHOST=host-01.sandbox.local,host-02.sandbox.local” -MODE=FULL’ DAYofweek=Saturday WEEKofmonth=First Startt=00:00:00

image

Example 4: Immediate Full backup job of all virtual machines in vCenter except VM1 and VM2.

define sched vmware Manual_Backup Desc=’Manual Backup all VM except VM1, VM2’ Action=Backup Subaction=VM OPTions=’-vmfulltype=vstor -vmbackuptype=fullvm -asnodename=VC1_DC1 -domain.vmfull=”all-vm; -vm=VM1,VM2″ -MODE=FULL’ startd=today startt=now

image

References:

Domain.vmfull option

DOMAIN.VMFULL option need clarification

Vmfolder keyword syntax examples

Use vmmc to define management class

Define schedule

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s