TSM Backup

The Capitularia VM is backed up to the TSM service offered by the RRZK. The node name is: MPERATHO.CAPITULARIA on the server TSM6.

The full configuration data is in the directory /opt/tivoli/tsm/client/ba/bin/ in the files dsm.opt and dsm.sys.

An incremental backup is started by cron.daily which calls /root/backup.sh. This script makes a dump of the databases and of the published manuscripts before backing up the whole filesystem. Past dumps are kept on a daily, weekly, montly and yearly basis in subdirectories of /var/backup/.

Logfiles: /var/log/dsmerror.log and /var/log/dsminstr.log.

To manually start a backup:

sudo /root/backup.sh

To backup files or directories:

sudo dsmc selective /var/backup/mysqldump.sql
sudo dsmc selective /var/backup/
sudo dsmc selective /var/backup/ -subdir=yes

To get a list of backed up files:

sudo dsmc query backup /var/backup/

To restore a file to the same location:

sudo dsmc restore /var/backup/mysqldump.sql
sudo dsmc restore /home/joe/deleted_file.txt -latest

To restore a file to a different location:

sudo dsmc restore /var/backup/mysqldump.sql /var/backup/mysqldump_copy.sql


To manually update the TSM client (replace with the new version):

wget http://ftp.software.ibm.com/storage/tivoli-storage-management/patches/client/v8r1/Linux/LinuxX86_DEB/v8115/
tar -xvf

sudo dpkg -i tivsm-api64.amd64.deb
sudo dpkg -i tivsm-ba.amd64.deb
sudo dpkg -i tivsm-apicit.amd64.deb
sudo dpkg -i tivsm-bacit.amd64.deb
sudo systemctl restart dsmcad.service
sudo systemctl status dsmcad.service