TSMPIPE, a STDOUT/STDIN backup/archive client for Tivoli Storage Manager (TSM) or now known as IBM Spectrum Protect. This client enables you to pipe output out of an application, directly into Spectrum Protect without using the BA Client.
This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Deon George 564b39b884 Fixes to compile on CentOS 8 - thanks to Torsten for providing this patch 2021-10-26 16:44:20 +11:00
lib Fixes to compile on CentOS 8 - thanks to Torsten for providing this patch 2021-10-26 16:44:20 +11:00
scripts Added table locking to mysql during backup 2015-07-17 21:56:09 +10:00
test Added back DOCKER_HOST to gitlab CI 2018-03-21 16:59:17 +11:00
.dockerignore Minor changes for automated build 2017-11-29 17:24:05 +11:00
.gitlab-ci.yml Update to TSM Client 8.1.7 2019-05-07 06:40:00 +10:00
Dockerfile Update to TSM Client 8.1.7 2019-05-07 06:40:00 +10:00
LICENSE Enabled gitlab runner 2016-06-23 17:32:31 +10:00
Makefile.linux32 Enabled Digest calculations for data going to TSM - useful for verification 2013-11-07 18:06:56 +11:00
Makefile.linux64 Fixed compile on c7, use of __func__, output of list 2015-09-23 11:36:02 +10:00
README.md Update README.md 2017-03-01 21:15:17 +00:00
tsmpipe.c Added application version reporting to SP 2018-03-21 00:13:36 +11:00
tsmpipe.h Added application version reporting to SP 2018-03-21 00:13:36 +11:00

README.md

About

TSMPIPE is a Tivoli Storage Manager (TSM) or now known as Spectrum Protect client, that enables you to take data from STDIN and store that in TSM as a BACKUP or ARCHIVE object. By using this client, you dont need to do a dump to disk process, followed by using the Spectrum Protect Backup Archive Client. (So no more consuming disk space with old dumps!)

Restoring data, is the reverse step, restoring directly back to the application from Spectrum Protect.

Using

In its simplest form, you can cat myfile.ext | tsmpipe -c [MORE OPTIONS]

Or, where an application supports "dumping" to STDOUT, you can pipe that dump into TSMPIPE. myappdump | tsmpipe -c [OPTIONS]

Getting data back is the reverse tsmpipe -x [MORE OPTIONS] > myfile

Or, back to your application tsmpipe -x [MORE OPTIONS] | myapp

This client can also calculate a digest while backuping up data (like MD5, SHA1, etc) - so that you can verify that the dump out of the application matches what goes into Spectrum Protect. For example:

myappdump > file
md5sum file
cat file | tsmpipe -cBs /example/ -f file -m md5
tsmpipe -xBs /example/ -f file > file2
md5sum file2

The MD5 calculation should match in all cases - including the MD5 printed by tsmpipe. See the build test script for more details.

Building

Building TSMPIPE is hopefully relatively easy - it's currently only tested on Linux (specifically CentOS), but it should be buildable on other Spectrum Protect supported platforms, however you may need to create an appropriate Makefile.

Here is a blog on building on Linux: https://thefrinkiac7.wordpress.com/data-protection/building-tsmpipe

Help

For help, use tsmpipe -h To test that you can connect to TSM, use tsmpipe -i