Backup examples
Execute the following command to start a backup to tape without specifying a level: ontape -s
You can use the -L option to specify the level of the backup as part of the command, as the following example shows: ontape -s -L 0
Use the -d option to avoid interactive prompts when you are backing up to or restoring from a directory: ontape -s -L 0 -d
When
you do not specify the backup level on the command line, ontape prompts
you to enter it. The following figure illustrates a simple ontape backup
session.
The following example shows how to create a level-0 archive
of all storage spaces to standard output, which is diverted to a file
named level_0_archive in the directory /home:
ontape -s -L 0 >/home/level_0_archive -t STDIO
The
following example assumes TAPEDEV STDIO in onconfig and
creates a level-1 archive to standard output , which is diverted to
a pipe:
ontape -v -s -L 1|compress -c >/home/compressed/level_1_archive
The compress system utility reads from the pipe as input, compresses the data, and writes the data to the file level_1_archive in the /home/compressed directory. The ontape information messages are sent to stderr.