Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

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:

#!/bin/sh 
case "$1" in
    start)
        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
        fi
        #
        # If lgtoserv is installed, start nsrd
        #
        if [ -f /usr/sbin/nsrd ]; then
            echo " nsrd"
            /usr/sbin/nsrd
        fi
        echo "." 
        ;;
    stop)
        echo -n "Stopping NetWorker daemons:"
        if [ -f /usr/sbin/nsr_shutdown ]; then
            echo -n " nsr_shutdown -a -q"
            /usr/sbin/nsr_shutdown -a -q
        fi
        echo "." 
        ;;
    restart|force-reload)
        $0 stop
        $0 start
        ;;
    *)
        echo "usage: `basename $0` {start|stop|restart|force-reload}"
        exit 1
        ;;
esac
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


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.