Legato Networker ClientPak and Storage Node User's Guide

19
Chapter 2: Backing Up Files
2
Backing Up a File
Backing up files is very similar to backing up directories. You can back up files from
the CI or from the POSIX shell.
The NSRSAVE command to back up a file includes the following parameters:
-s, the parameter for the server
The name of the server to which you are backing up your directory
The pathname of the file that you are backing up
Using the Command Interpreter
From the CI, enter the following command to back up a file:
: RUN NSRSAVE;INFO="-s server
/file_pathname
"
For example:
: RUN NSRSAVE;INFO="-s jupiter
/projects/project1/reports/rep1
"
Using the POSIX Shell
From the POSIX shell, enter the following command to back up a file:
$ NSRSAVE -s server
/file_pathname
Backing Up a Group of Files
You can back up a group of files with common character patterns in their filename, but
only from the POSIX shell. For example, if you have a directory with five files starting
with the letter r, then you can back up all those files at once by entering the minimum
number of characters that form a pattern and substituting an asterisk for characters
that are different.
The NSRSAVE command to back up a group of files includes the following
parameters:
-s, the parameter for the server
The name of the server to which you are backing up your directory
The pathname of the file that you are backing up
The characters that create a common pattern in the filename
An asterisk for the different characters in the filename
For example, from the POSIX shell, back up all the files in the /projects/project1/reports
directory starting with the letter r as follows:
$ NSRSAVE -s jupiter
/projects/project1/reports/r*