Backing Up the System


Use the TAS Manager Console to perform regularly scheduled backups. You can save the backup file to the TAS, to another location, or both. There are three ways to perform a backup:

  1. Use the TAS Manager Console to perform a backup
  2. Use the TAS Manager Console to set an automated backup of the TAS as per defined schedule with an option to push the backup file to an external server - Additional details in Scheduled Backup.
  3. Use the CLI to perform a backup via an SSH window to the Test Manager (TAS) - Several options are offered including Full/Full_Data backup - see below for additional details.

TIP: When you upgrade the system, you will have the option to perform a backup as part of the upgrade process.

Use the TAS Manager Console to perform a backup :

  1. Stop the TAS...

  2. Select System > Backup from the menu, and the Backup TAS Settings window is displayed. Select Type and Options : Select to perform a full, full_data or info backup: 

  3. If you want to save the backup file to the TAS, click the Save copy on TAS checkbox. The file name will be in the format TAS_<TAS version>_<year>-<month>-<day>_<hour>.<minute>.<second>.bck. Example:Example:

    TAS_2.0.0.0_2005_01_17_10.10.53.bck

  4. If you want to save the backup file to another location, click the Save to local file checkbox and then click Browse to select the file name and location for the backup. You can save the backup to any local or network drive available to your machine.

  5. Click OK to begin the backup. The messages in the console will keep you apprised of the backup progress, and the backup file name will be displayed.

  6. When the backup is complete, Start the TAS...

NOTE: The backup file will contain the license and test cases (test suite) from the backed up TAS thus if you restore you may have to install the current license and/or import the official test suite for the new TAS.

 

Use the CLI to perform a backup via an SSH window to the Test Manager (TAS) :

Command Description/Purpose

backup-tas

Backup the TAS, the interactive way.

NOTE:

  • Performing the tas-backup info -f <PATHNAME> will now check the size of the hard drive or partition that hosts <PATHNAME>, to give better indication of how much space is available to hold your backup file.  Important when TAS has multiple hard drives:
    Checking for space on the partition hosting /usr/sms/data/backups
    There are 75G bytes left on the hard drive
    There are approximately 1G bytes of uncompressed data to backup
     
  • The default CLI backup will be saved into /tmp/TAS.bck not /usr/sms/TAS.bck and given better permissions to allow CLI user to move the file. The impact of this change, means there must be a /tmp directory and it must be large enough to hold the default backup. If /tmp is not mounted on same drive as /usr/sms, it could be a concern.
  • For both backup and restore, the backup files will be further verified to contain required / expected files to prevent accidental partial backups or restores of bad files

 

backup-tas info

Will display disk space remaining and estimate of how much disk space the backup file will take for full with options b,u,l,t,a,r,s   Example:  

##>backup-tas info

Determining Backup Size

Including TAS Backups

Including TAS Upgrades

Including TAS Licenses

Including Test Suites

Including TS Backups

Including TS Upgrades

There are 328G bytes left on the hard drive

There are 32G bytes of data to backup

backup-tas info lts

Both info and full options take additional optional arguments to indicate which extra things you want backed up, including even Results.   Here is the usage statement:

 

##>backup-tas -h

 

backup-tas - Backup the TAS

Usage:  backup-tas < info | full | full_data > <b><u><l><t><a><r><s><o> <-f[file_pathname]>

 

Call with No arguments for normal interactive backup to a .bck file

full option performs a full tar.gz backup of TAS filesystem, including the installed TAS Software with options, b,u,l,t,a,r,s,o

full puts a file in /tmp/TAS_Full_Backup.tar.gz,

full_data option performs a full tar.gz backup of TAS filesystem without TAS software with options, b,u,l,t,a,r,s,o

full_data puts a file in /tmp/TAS_Full_Data_Backup.tar.gz,

info displays estimated size for full, with options, b,u,l,t,a,r,s

 

Letters enable optional data to backup, only apply to info/full/full_data, not interactive

b=TAS-Backup files, u=TAS-Upgrade files, l=TAS-License Files

t=TS-Upgrade files, a=TS-Backup files, r=Test Results, s=Test Suites

o=override restriction to allow active TAS backup, only apply to full/full_data

File specification to override default backup file destination, only applies to full/full_data

 

Examples:    backup-tas

backup-tas info

backup-tas info lts

backup-tas full bultars

backup-tas full bultarso -f /tmp/tas_backup.tar.gz

backup-tas full_data bultars
backup-tas full_data -f /tmp/tas_data_backup.tar.gz

##>

backup-tas full bultars

backup-tas full_data bultars

backup-tas full bultarso -f /tmp/tas_backup.tar.gz

backup-tas full_data -f /tmp/tas_data_backup.tar.gz

Full will execute the fuller automated backup. The same options apply to full and to full_data (see above for additional details)   

Example:

(the info command would just provide the first part up to "There are X bytes of data to backup" )

##>backup-tas full bultas

Perform full backup

Determining Backup Size

Including TAS Backups

Including TAS Upgrades

Including TAS Licenses

Including Test Suites

Including TS Backups

Including TS Upgrades

There are 3.2G bytes left on the hard drive

There are 2G bytes of data to backup

TAS database backup complete, continuing with file system...

Backing up Files

Creating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Finalizing Backup File

Compressing Backup File

TAS backup is complete: /tmp/TAS_Full_Backup.tar.gz

-rw-rw-r-- 1 sms sms 2024769214 Mar  3 15:49 /tmp/TAS_Full_Backup.tar.gz

Be sure to retrieve and delete the backup file

##>

 

Example:

##>backup-tas full

Perform full backup

Determining Backup Size

Including TAS Backups

Including TAS Upgrades

Including TAS Licenses

Including Test Suites

Including TS Backups

Including TS Upgrades

There are 328G bytes left on the hard drive

There are 32G bytes of data to backup

TAS database backup complete, continuing with file system...

Backing up Files

Creating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Updating Backup File

Finalizing Backup File

Compressing Backup File

TAS backup is complete: /tmp/TAS_Full_Backup.tar.gz

-rw-rw-r-- 1 sms sms 33714482289 Mar 25 11:57 /tmp/TAS_Full_Backup.tar.gz

Be sure to retrieve and delete the backup file

 

Related Topics

  1. Restoring the System
  2. Starting the TAS Manager
  3. System Maintenance Tasks
  4. Upgrading the System