Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Legato NetWorker

Legato's NetWorker is a network based backup system. A typical situation is to have the NetWorker server running on a Solaris backup server and installing the Legato client on your Debian workstation. Your workstation can then be backed up daily as part of the server's schedule.

To install the client software and the manual pages (available as Red Hat packages) on your Debian workstation mount the supplied CD-ROM (which might be called the Solstice Backup 6.1: Servers, Clients and Storage Nodes, Volume 1) and then:

  $ wajig rpminstall /media/cdrom/LINUX86/LGTOclnt/lgtoclnt-6.1-1.i386.rpm
  $ wajig rpminstall /media/cdrom/LINUX86/LGTOman/lgtoman-6.1-1.i386.rpm

A daemon needs to be listening for connections to the workstation from the backup server. The daemon is called nsrexecd and to set things up in the Debian way create the following as /etc/init.d/networker:

case "$1" in
        echo -n "Starting NetWorker daemons: "
        if [ -f /usr/sbin/nsrexecd ]; then
            echo -n " nsrexecd"
            # Allow access from only the specified hosts. 
            /usr/sbin/nsrexecd -s nsrhost
        if [ -f /usr/sbin/nsrd ]; then
            echo " nsrd"
        echo "." 
        echo -n "Stopping NetWorker daemons:"
        if [ -f /usr/sbin/nsr_shutdown ]; then
            echo -n " nsr_shutdown -a -q"
            /usr/sbin/nsr_shutdown -a -q
        echo "." 
        $0 stop
        $0 start
        echo "usage: `basename $0` {start|stop|restart|force-reload}"
        exit 1
exit 0

Make sure it is executable:

  # chmod a+rx /etc/init.d/networker

Now you can start the daemon and check that it is running (you will get 2 nsrexecds running):

  $ wajig start networker
  $ ps uaxxc | grep nsr
  root 3275  0.0  0.0  2356  564 ? S Oct10 0:00 nsrexecd
  root 3285  0.0  0.0  2496 1020 ? S Oct10 0:00 nsrexecd

To have the daemon start and stop at boot and shutdown time create the following symbolic links:

  # cd /etc/rc2.d
  # ln -s ../init.d/networker S95networker
  # cd /etc/rc0.d
  # ln -s ../init.d/networker K05networker

Note that in the init script above reference is made to nsrhost. This is the host name of the backup server (on the local network it might actually be called nsrhost). Replace this with the host name of your own backup server.

Now to recover a file run the graphical interface nwrecover.

The command line interface to recover from a specific path backed up on host caprice:

  $ recover -c caprice /local/work/kayon
  recover: Current working directory is /local/work/
  recover> destination
  recover files into their original location
  recover> relocate /home/kayon/recover/
  recover> destination
  recover files into /home/kayon/recover
  recover> ls
  recover> add <filename>
  recover> recover

Copyright © 1995-2006 [email protected]

  Published under the terms fo the GNU General Public License Design by Interspire