zurück

blooSafe

 

Restore eines Ordners/Files:
=====================
dsmc restore -pitd=11/24/2020 -pitt=00:00:00 -subdir=yes /OrdnerVomBackup/ /meinZielordner/


dsmc restore -pitd=11/24/2020 -pitt=00:00:00 -subdir=yes /meineDateil.txt /meinZielordner/

 

Versionen
=======

dsmc q b "/backup/*" -subdir=yes -ina
Size Backup Date Mgmt Class A/I File
---- ----------- ---------- --- ----
6 B 02/10/2020 15:51:30 MC90V90D90R90O A /backup/mariadb
136,570 B 02/11/2020 00:56:33 MC90V90D90R90O A /backup/mariadb/mysql.gz
136,568 B 02/10/2020 16:16:20 MC90V90D90R90O I /backup/mariadb/mysql.gz
136,571 B 02/10/2020 16:23:58 MC90V90D90R90O I /backup/mariadb/mysql.gz
136,571 B 02/10/2020 16:32:06 MC90V90D90R90O I /backup/mariadb/mysql.gz

A/I steht fuer active / inactive version, die Mgmt Class definiert die History.

 

=============
TSM Client Linux

Config Files
• /opt/tivoli/tsm/client/ba/bin/dsm.opt
• /opt/tivoli/tsm/client/ba/bin/dsm.sys

Select Backup Data
• DOMAIN Parameter
* all local filesystems, this is the default
domain all-local
* specify one or more partitions (not folders)
domain /tst /datasave /joe
* all local filesystems, exclude a partition
domain ALL-LOCAL -/home
• Exclude/Include Lists - query settings with dsmc q inclexcl
* exclude a directory - it is not possible to include anything below with an include statement, position in config file doesn't matter
EXCLUDE.DIR "/dev"
* exclude all directories not starting /p... – if you want to backup just one folder, you have to exclude all others.
* if you use INCLUDE/EXCLUDE instead, directory information is backed up, only files are excluded
EXCLUDE.DIR "/[a-oq-z]*"
* exclude everthing but files in /home - directories are backed up anyway - include/exclude statements are processed from the bottom of the list up
exclude /.../*
include /home/*

Service
The client acceptor daemon (dsmcad) queries the server for schedule associations 1 minute after startup and every 12h by default, and starts the backup at the scheduled time. To immediately pick up a schedule change on the server, restart the daemon.
service dsmcad restart
Logs
• /var/log/dsmwebcl.log - CAD log
• /var/log/dsmsched.log - Scheduler log

Command Line Client
You can run dsmc (/bin/dsmc) interactively or by specifying commands directly on the command line.
• query for a specific file
dsmc query backup /etc/resolv.conf - short form dsmc q b /etc/resolv.conf
• all files in a directory
dsmc q b '/etc/*'
• all files ending with .conf in directory /etc
dsmc q b '/etc/*.conf'
• recursive search for all .conf files in /etc
dsmc q b '/etc/*.conf' -subdir=yes
• ATTENTION: recursive searches do not cross filesystem (filespace) boundaries - for example, if /etc is a partition, the first query will not return the desired result. The second will work as expected.
dsmc q b '/*resolv.conf' -subdir=yes
dsmc q b '/etc/*resolv.conf' -subdir=yes
• show inactive versions (files deleted from the client / previous versions of existing files)
dsmc q b '/etc/*resolv.conf' -subdir=yes -inactive
• query filespaces
dsmc query filespace or dsmc q fi
• query available management classes
dsmc query mgmtclass
dsmc query mgmtclass -detail
• query schedule associated with the client
dsmc query schedule
• restore the latest version of a file
dsmc restore /etc/resolv.conf
• restore to a different location
dsmc restore /etc/resolv.conf /var/tmp/resolv.conf
• point in time restore - files that were backed up on or before the date and time you specify, and which were not deleted before the date and time you specify
dsmc restore /etc/resolv.conf -pitd=05/25/2015 -pitt=00:00:00
• interactively select files to be restored, including inactive versions
dsmc restore "/user/project/*" -pick -inactive
• recursively restore a directory to a new location - point in time restore
dsmc restore -pitd=05/25/2015 -pitt=00:00:00 -subdir=yes /home/user/ /var/tmp/restore/user/
• restore a file, overwriting an existing version - dsmc asks what to do by default if a file exists
dsmc restore -replace=yes /etc/resolv.conf