Networker Commmand Line Examples

You may ask your issues here and Experts will try their best to answer the Queries
Post Reply
ManU
Founder
Founder
Posts: 98
Joined: Sat Sep 26, 2009 9:57 am
Location: India
Contact:

Networker Commmand Line Examples

Post by ManU » Thu Sep 02, 2010 10:08 pm

savegrp: The "savegrp" command is executed on a NetWorker server.

savegrp Group1

Starts backups for every client in the "Group1" group and
uses the schedule defined for each client or the "Group1"
group.

savegrp -c ClientA Group1

Starts a backup for the client "ClientA", and uses the schedule
defined for "ClientA" or the schedule for the "Group1" group.

savegrp -l full -c ClientA Group1

Starts an explicit full backup for the client "ClientA"
regardless of the defined schedule for the client or the
"Group1" group.

save: The "save" command is executed on a NetWorker client.

save /MyBackup/home/documents

Starts a backup of the "/MyBackup/home/documents" directory to
the default NetWorker server. Without any additional
specifications.

save -s Server1 -p FULL -l full /MyBackup/home/documents

Starts an explicit full backup of the "/MyBackup/home/documents"
directory to the backup server named "Server1" and causes
a volume from the "FULL" pool to be used. The "-s" option
is only relevant if there are multiple backup servers
available to this client.

recover: The "recover" command is executed on a NetWorker client.

recover

Enter the "recover" interactive interface to the default
backup server.

recover -s Server1

Enter the "recover" interactive interface to the backup server
named "Server1 ".

recover -s Server1/MyBackup/home/documents

Recover all the files in the "/MyBackup/home/documents"
directory from the backup server named "Server1".

recover -s Server1-S 12345678

Recover the saveset indicated by the SSID "12345678" from
the backup server named "Server1". SSIDs can be
determined using the "mminfo" command.

mminfo: The "mminfo" command is typically performed on a NetWorker
server.

mminfo -m -q "client=A,savetime>=last week"

Display a media report of all volumes used for backups of
client "A" in the past week.

mminfo -a -r "volume,%used,pool"

Display a report of all volumes showing the volume name,
% of space used on the volume, and the pool to which the
volume belongs.

mminfo -q "client=A" -r "ssid,name,totalsize,savetime,volume"

Display a report of all savesets from client A, showing
the SSID, saveset name (file system or directory), total
size of the saveset, the savetime of the saveset, and the
volume it was written to.

mminfo -B

Run a defined query to report bootstrap savesets which have
been generated in the last five weeks.

nsrmm: The "nsrmm" command is performed on a NetWorker server.

nsrmm -m -f /dev/rmt/0cbn FULL.12345

Mounts the volume named "FULL.12345" on the specified
stand-alone tape drive.

nsrmm -m -l -f /dev/rmt/0cbn -b FULL FULL.12345

Writes a NetWorker label "FULL.12345" on the tape in
the specified stand-alone tape drive, adds the volume to
the "FULL" pool, and mounts it. This also
adds the volume name to the media manager database.

nsrmm -u -f /dev/rmt/0

Unmount the volume in the specified device.

nsrmm -j -f /dev/rmt/0

Eject the volume from the specified device.

nsrmm -o recyclable INCR.12345

Set the volume "INCR.12345" to recyclable mode.

nsrmm -d VOL.1234.1

Delete the volume "VOL.1234.1" from the media manager
database.

nsrjb: The nsrjb command is performed on a NetWorker server
with a jukebox attached.

nsrjb

Shows the volumes present in the
jukebox slots and in the jukebox drives.

nsrjb -d -P1 -S26

Deposit a tape cartridge from access port slot 1 (-P1)
to jukebox slot 26 (-S26).

nsrjb -w -S236 -P5

Withdraw a tape cartridge from jukebox slot 236 to
access port slot 5.

nsrjb -l -f /dev/Juk1/123 AB1234

Load volume AB1234 into jukebox device /dev/Juk1/123.

nsrjb -l -f /dev/Juk1/123 -S 26

Load a tape cartridge from jukebox slot 26 into jukebox
device /dev/Juk1/123.

nsrjb -u -f /dev/Juk1/123

Unload the tape cartridge in jukebox device /dev/Juk1/123
back to the jukebox slot it came from.

nsrjb -L -f /dev/Juk1/123 -S 177 -b FULL

Load the tape cartridge in jukebox slot 177 into jukebox
device /dev/Juk1/123 and write a label on it indicating
that it is in the FULL pool. This example assumes that
the jukebox has a barcode reader, that the tape cartridge
has a barcode attached, and NetWorker is configured to
automatically use barcodes for logical labels.

nsrjb -HE

Unload all jukebox drives and reset them.

nsrjb -IE -S307 -f /dev/Juk1/123

Inventory the contents of slot 307 using jukebox device
/dev/Juk1/123.

nsrclone: The "nsrclone" command is executed on a NetWorker server.
This action requires the use of two backup devices
simultaneously, a source device and a destination device.
Source and destination do not have to be the same kind of
device or the same size volumes. NetWorker will use as
many of the destination volumes as necessary to complete
the cloning.

nsrclone -b FULLCLONE A12345

Clone the data in the saveset identified by SSID "A12345"
onto a volume in the "FULLCLONE" pool. NetWorker identifies
the source volume, mounts it, mounts a volume from the
destination pool, then duplicates the data from source to
destination.

nsrclone -b FULLCLONE A12345

Clone the savesets from volume A12345 onto a volume in the
"FULLCLONE" pool.

nsrck: The nsrck command is performed on a NetWorker server.

nsrck -c A

Perform a consistency check and repair of the indexes for
client "A".

nsrck -F -c A

Perform a consistency check and repair of the indexes for
client "A" and force all phases to be performed. The
-F option also forces compression on the client indexes.

scanner: The scanner command is performed on a NetWorker server.

scanner -i /dev/Juk1/123

Scan the volume in device /dev/Juk1/123 and rebuild media
and online indexes from the data found on the tape.

scanner -B /dev/Juk1/123

Scan the volume in device /dev/Juk1/123 and identify
bootstrap images on it. A bootstrap image is necessary to
rebuild damaged or destroyed NetWorker server and media
indexes, as well as server resource files.
See "mmrecov" for performing such a recovery.

mmrecov: The mmrecov command is performed on a NetWorker server.

mmrecov /dev/Juk1/123

Initiate the recovery of a NetWorker server's online index
and media index from the volume loaded in /dev/Juk1/123.
The mmrecov utility will prompt for information regarding
the SSID and record number of the appropriate bootstrap
image on the volume. This information must be known
BEFORE initiating this process,

The SSID and record number can be determined by either of
the "mminfo" or "scanner" commands described above.
Thanks
MANU PHILIP
Microsoft MVP(Exchange Server)
| MCITP | MCTS | MCSA | ITIL V3 |
TechNet Forums Profile: ManU

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests