The 8 most commonly used NetWorker commands

This short article provides a list of the eight most commonly used NetWorker commands. All of these commands are located in /usr/sbin/nsr with th exception of the code>recover which is located in /usr/bin/nsr.

Media Management

  • nsrjb — The nsrjb command manages jukeboxes for all NetWorker servers. The nsrjb command, rather than nsrmm, should be used to label, load, and unload the volumes contained within a jukebox.
  • nsrmm — The nsrmm command provides a command-line interface to manage the media and devices (tapes, disks, and files) used by NetWoker servers.

Backup

  • savesave saves files, including directories or entire filesystems, to the NetWorker server, see nsr(1m) man page.
  • savegrp— The savegrp command runs a group of NetWorker clients through the process of saving their filesystems (using save). The group of clients is selected by naming a NetWorker group. The savegrp command is normally run automatically by nsrd, as specified by each group's nsr_group resource.

Recovery/Restoration

  • recoverrecover browses the saved file index and recovers selected files from the NetWorker system. The file index is created when files are saved with save. When in interactive mode (the default), the user is presented with a view of the index similar to a UNIX filesystem, and may move through the index to select and recover files or entire directories. In automatic mode (-a option), the files specified on the command line are recovered immediately and no browsing takes place.
  • scanner — The scanner command directly reads NetWorker media, such as backup tapes or disks, to confirm the contents of a volume, to extract a save set from a volume, or to rebuild the NetWorker on-line indexes. When scanner is invoked with no options or just -v, the volume on the indicated device is opened for reading, scanned, and a table of contents is generated. The table of contents contains information about each save set found on the volume.

Monitoring

  • mminfo — The mminfo command reports information about NetWorker's media and save sets. Without any options, mminfo displays information about the save sets that completed properly during the last twenty four hours, and are still contained in an on-line file index (browsable save sets). The following information is printed for each save set: the containing volume name, the client's name, the creation date, the size saved on that volume, the save set level, and the save set name.
  • nsrinfo — The nsrinfo command is used to generate reports about the contents of a client's file index located in /nsr/index. Given a required NetWorker client name and no options, nsrinfo will produce a report of all names of files and objects, one per line, in the backup name space for that client.