Our backup from harriet and its mounted fibrechannel-space SAN is realised with rdiff-backup (installed with: aptitude install rdiff-backup). The software has to be installed on the server and the machine which will get backed up. Additionally the server needs a working ssh-connection to all clients.
This is running the backup every night at 2:40 and is backing up / but excluding some recommend directories.
Restore files from the backup
To restore any file from a backup you first have to login as the user rdiff-backup (password is found in the KeePassX-database), then you have to type:
So for example to restore alices whole home directory from 10 days ago:
The restore directory has to be owned by rdiff-backup so the user can write into it.
Delete increments - free disk space
To delete old increments run: rdiff-backup --remove-older-than 90D /data/backup_harriet This will delete all increments which are older than 90 days.
Back up the seafile-data
Additional to the server backups (harriet) you should backup the seafile-data directory. So in case of a corruption of these files you can restore all metadata.
TSM-backup
IBM Tivoli Storage Manager is a heavy backup software which enables clients to upload their backup onto TSM servers. TSM is now called IBM Spectrum Protect. We have the authorization to backup our server onto the HU TSM servers.
Installing the client software
Installing the client server on a Debian system running kernel 4.9+ is somewhat complicated. You need several .deb packages to install the software.
Create a working directory and change into it: mkdir tsm; cd tsm
Download the latest .deb package from the IBM support site OR via direct link:
Decompress the downloaded .tar archive: tar -xvf 8.1.0.0-TIV-TSMBAC-LinuxX86_DEB.tar
Delete the outdated Filepath source: rm tivsm-filepath-source.tar.gz for a Debian running Kernel 4.9.0-2 you can download this [Filepath source]. For any other Kernel you can try the above, or the one inside the .tar package. If they don't compile you have to write an E-Mail to IBM-staff (tsmosreq@us.ibm.com). He will fix the source code to fit your kernel version.
Check the release number of your TSM instance: dpkg-deb -I tsmbackup/tivsm-api64.amd64.deb and copy the Version: entry.
Install make and the Linux-headers:
Then extract the Filepath source: tar -xf TIVsm-filepath-source_test.tar.gz. Change into source directory: cd jbb_gpl and compile it with make RELNUM=$copiedReleaseNumber deb. If the compile can't finish successfull you can't continue, see step 4 for details. If make is not found you first have to run sudo aptitude update and then sudo aptitude install build-essential linux-headers-amd64. The compiling will create a .deb package in the jbb_gpl directory.
Install all TSM components by running the following commands:
When every package was sucessfully installed head over to the configuration.
TSM Configuration
Firt of all you have to alter the init.d registration of TSM. Open /etc/init.d/dsmcad with your favorite editor and go to line 92. Replace line 92 with: if [ $ID = "debian" ] this will make the script work correctly with Debian. Try the script with: sudo /etc/init.d/dsmcad status
You should got the login credentials for the TSM-server from the workgroup-systemadminstrator. These credentials should contain the following 4 parameters which are needed to access the HU TSM server:
************************************************************************
* Tivoli Storage Manager *
* *
* Sample Client System Options file for UNIX (dsm.sys.smp) *
************************************************************************
*
* This file contains the minimum options required to get started
* using TSM. Copy dsm.sys.smp to dsm.sys. In the dsm.sys file,
* enter the appropriate values for each option listed below and
* remove the leading asterisk (*) for each one.
*
* If your client node communicates with multiple TSM servers, be
* sure to add a stanza, beginning with the SERVERNAME option, for
* each additional server.
*
************************************************************************
SErvername TSM-SERVERNAME
COMMMethod TCPip
TCPPort 1500
TCPServeraddress TSM-SERVERNAME.cms.hu-berlin.de
NOdename SVALBARD_BIO
PASSWORDAccess generate
* EXCLUDE.DIR "/home/user/test"
ERRORLOGName /var/log/dsmerror.log
ERRORLOGRETENTION 60
SCHEDLOGName /var/log/dsmsched.log
SCHEDLOGRETENTION 30
SCHEDMODE PROMPTED
MANAGEDSERVICES WEBCLIENT SCHEDULE
* WEBPORTS 2123 2124
************************************************************************
* *
* Sample Client User Options file for UNIX (dsm.opt.smp) *
************************************************************************
* This file contains an option you can use to specify the
* server to contact if more than one is defined in your client
* system options file (dsm.sys). Copy dsm.opt.smp to dsm.opt.
* If you enter a server name for the option below, remove the
* leading asterisk (*).
************************************************************************
SERVERNAME TSM-SERVERNAME
SUbdir yes
QUIET
DOMAIN ALL-LOCAL
* DOMAIN "/"
* DOMAIN "/home"