Unit 9: Backup-archive client functions
Unit 9: Backup-archive client functions
9-2
Objectives
Upon completion of this unit, you will be able to:
Describe and compare the kinds of backups possible.
Use the Tivoli Storage Manager backup-archive GUI to back up and restore files from a client.
Use the command line to back up and restore files from a client.
Use the Tivoli Storage Manager backup-archive GUI to archive and retrieve client files.
9-3
Storage area networks and local area networks
A local area network (LAN) is a network that connects several devices in a limited area (such as a single building or campus) and that can be connected to a larger network.
local area network
A storage area network (SAN) is a dedicated storage network that is tailored to a specific environment, combining servers, systems, storage products, networking products, software, and services.
metadata
local area network
storage area network
data
9-4
Backup and restore overview
A backup creates an additional copy of a data object to be used for recovery. A data object can be a file, directory or a user-defined data object such as a database table.
The backup version of this data object is stored separately in the Tivoli Storage Manager server storage repository.
When you restore an object, you copy it back from the server to the client.
You can restore a file, a directory, or even a whole machine. You need to know two things: what you want to restore (file name, directory), and, optionally, from when (point in time) if you want to restore an object other than the most recent one.
9-5
Progressive incremental backup
The standard method of backup used by the Tivoli Storage Manager backup-archive client.
A full backup of new objects is followed by incremental backups.
No additional full backups of are required after the first backup.
There is no need to retransmit backup data that has not been changed during successive backup operations.
9-6
Incremental and selective backups
Incremental Backups Incremental (Complete) Incremental by Date Incremental (without Journal)
Always Backups (Selective or full)
9-7
Other backup types
Progressive Incremental Backup– Complete– Date Only– Without Journal
Selective Backup (Always Backup)
Journal-Based Backups
Image Backup
Logical Volume Backup
NAS File System Backup (NDMP)
9-8
Journal-based backups
Windows Clients Only
Journal Engine service running
Changes recorded in Journal
Tivoli Storage Manager uses recorded changes instead of querying server
Differences between journal-based backup and incremental backup:
– In a progressive incremental backup the list of files is created by scanning the entire file system on the client and comparing that list with a list of files on the server.
– With journal-based backup, the Tivoli Storage Manager backup-archive client gets the list of backups by examining the entries created by the Journal Based Backup Daemon.
9-9
File level backups
existing
files
backup window is 00:00 – 07:00
9-10
Comparison of file level backups
9-11
Backup sets
Example: define backupset client important_data devclass=CDROM volumes=vol1,vol2 retention=50 description=“customer list”
Backup sets are generated
by an administrator.
A backup set is a group of active versions of files, copied onto portable media.
Backup sets can be restored on the client locally, without the Tivoli Storage Manager server being available.
Can be generated in the Administration Center in the Client Nodes and Backup sets section of the menu tree.
9-12
Using the backup-archive GUI
9-13
Selecting files and performing a backup
9-14
Reviewing backup results
9-15
Using the find files function
From the backup menu select Edit > Find. When the Find Files (Backup) window opens, enter your criteria, and click Search. A window with files that fit your criteria opens.
Options for the What to Search menu: Files only All objects
Options for the File Name menu: any name matches mask starts with ends with contains is
9-16
Viewing the results of a search
9-17
Selecting the “Always backup” option
.
For a selective backup, choose Always backup from the menu.
9-18
Using the GUI to delete backup data
9-19
Deleting a backed up file
9-20
Restore overview
Restore is the process of copying a backed up version of a file from the Tivoli Storage Manager server to the client system over the specified communication method.
Tivoli Storage Manager server sends a copy of the file to the client, but the backup remains on the server.
You can use the following options: Perform restores through the GUI, client
command line, or through a schedule. Restore files to a location other than
where they were backed up. Restore backed up files to a specific point
in time. Replace or overwrite existing files with the
restored version. Select specific files and directories to
restore.
9-21
Restoring backed up files
If you do not specify a destination, the files are restored to their original location.
9-22
Select from a list of backup versions, images, or archive copies that match the file specification you enter. From the list, you can select the versions to process. You can view both active and inactive objects.
Selecting specific files to restore
9-23
Restore all the files matching tech*.doc to their original locations, which overwrites the existing files.
Restoring files with the overwrite option
9-24
Restoring files using the GUI
9-25
Displaying active and inactive versions of a file to file to restore
Before you select the file that you want to restore:
1. Click View 2. Select Display active/inactive
files.
When you select the files that you want to restore, you have a list of active and inactive files.
9-26
Modifying restore options
Select a file to restore and click Options.Then, select the “Disable No Query Restore method” option in the Advanced Restore Options section.
9-27
Point-in-time restore
A point-in-time restore restores files to a past state that existed at a specific date and time, as opposed to the current state of the last backup.
9-28
Restartable restores
Resumes at point of interruptionNew restore states
– Active– Restartable– Restarts on transaction
boundary
Transparent to client
No Query Restore process used
9-29
Using the command line for backups
dsmcTo use the command line for backups:1. Change directories to the backup-archive client.2. Enter dsmc to start the command line.
The syntax for the command line is as follows:dsmc action keyword –option=value filespec
For example, to perform an incremental backup of the /home/project/2009/lab24.txt file, use the following command:dsmc i /home/project/2009/lab24*
Alternatively, you can use the backup-archive command line.
9-30
Performing an incremental backup on the command line
From the backup-archive command line:
From the operating system command line:
9-31
Performing selective backups
To back up all of the files in the d:\proj directory, use the selective command, for example: dsmc sel d:\proj\*
To include all subdirectories for the same backup, use the following command: dsmc sel -subdir=yes d:\proj\*
9-32
Using the QUERY FILESPACE command
Issue the following command from the backup-archive client to see whether the Last Incr Date signifies that a recently performed incremental backup has completed successfully:
Query FILESpace
9-33
Restoring backed up files using the dsmc restore command
Restore the c:\projects\lab.ppt file to its original directory using the following command:
dsmc restore c:\projects\lab.ppt
If you do not specify a destination, the files are restored to their original location.
9-34
Using the dsmc restore command options
option example
-pick
-inactive
dsmc restore -pick -inactive c:\data\*
-replace dsmc restore –replace /home/projects/*
-latest dsmc restore –latest c:\projects\*
-ifnewer dsmc restore –ifnewer /home/projects/data/*
-pitt
-pitd
dsmc restore –pitt=09:00:00 –pitd=01/24/08 c:\data\tech.doc
9-35
Using the PRESERVEPATH restore option
Restore preserving directory structure– Complete: Restores complete path– Partial: Restores partial path– None: Does not preserve directory structure
PRESERVEPATH command-line option– Complete, Partial (subtree), Nobase, or None– The default is Partial
9-36
Student exercise: Part 1
Perform exercises 9-1 through 9-10
9-37
Overview of archive and retrieve
Archive creates a copy of specified files and stores them for a specified time.
Retrieve copies archived files from the storage pool to the client node for use. The retrieve operation does not affect the archive copy in the storage pool.
9-38
Using the GUI to archive and retrieve
In the Archive section of the Tivoli Storage Manager GUI, click Archive. Tivoli Storage Manager prepares for use.
9-39
Archiving files
Use the archive function to group important files by an associated description to archive now and retrieve later.
2009 Sales
9-40
Archive descriptions
Archive descriptions are added to expedite the retrieval of files by ensuring the correct file is found.
An archive description is a 255-character text field that identifies archived files and directories.
If you do not enter a description, Tivoli Storage Manager assigns the following default archive description:
Archive Date: mm/dd/yyyy(where mm/dd/yyyy is the current date)
9-41
Archive packages Archived files with common description
Archive or retrieve– Archive or retrieve complete package.– Retrieve individual files in package.– Add files to existing package.– Delete files from package.
New package– Created using unique archive description.– Default description
Archive Date: mm/dd/yyyy
Retrieve using the GUI client– Display archived files hierarchically.– Grouped by archive descriptions.
9-42
Archive options
Use the filter option to select files that match a pattern. 1. Select Delete files after Archive.2. Click OK.
9-43
How retrieve works
When you retrieve a file, Tivoli Storage Manager sends a copy of the file to the client node.
The archived file remains in server storage.
Archive copies can be retrieved from the directory tree.
Authorized users can retrieve archive copies of files owned by someone else.
9-44
Using the GUI to retrieve
After you select Retrieve from the main panel:1. Expand the tree to find archive files to retrieve. 2. Select the file or files. 3. Click Retrieve.
9-45
Selecting modify retrieve and collision options
Objects to retrieve: – All selected files and
directories– Files only– Directories only
Action for files that already exist:– Ask user before replacing– Do not Replace– Replace
9-46
Using the ARCHIVE command
dsmc archive
The following command line archives all files in the c:\lab1\project directory with a file extension of .txt:
dsmc archive c:\lab1\project\*.txt
The following command line archives the home/lab2/compl.doc file and assigns a description to the archive:
dsmc archive /home/lab2/2007/compl.doc - description=“Compliance standards for
2007”
9-47
Using the RETRIEVE commandThe following command line retrieves the c:\lab1\projects\*.txt file to its original directory:
dsmc retrieve c:\lab1\projects\*.txt
The following command line retrieves the /home/lab2/compl.doc file under a new name and directory:
dsmc retrieve /home/lab2/2007/compl.doc /home/old_lab/2007/compl.doc - description=“Compliance standards for 2007”
dsmc retrieve
9-48
Command options for backup, archive, restore, and retrieve
The following command options are available: SUBDIR FROMTIME TODATE FROMDATE TOTIME FROMNODE FROMOWNER PICK VIRTUALNODENAME
9-49
Archive and retrieve directories
Use command-line options to archive and retrieve directories. The default is to archive or retrieve both directories and files.
DIRSONLY– Archive or retrieve only the directories and their attributes.
FILESONLY– Archive or retrieve only the files and their attributes.
9-50
Student exercise: Part 2
Perform exercises 9-11 through 9-21
9-51
Summary
You should now be able to:
Describe and compare the kinds of backups possible.
Use the Tivoli Storage Manager backup-archive GUI to back up and restore files from a client.
Use the command line to back up and restore files from a client.
Use the Tivoli Storage Manager backup-archive GUI to archive and retrieve client files.