[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::networker

Title:NetWorker
Notice:kits - 12-14, problem reporting - 41.*, basics 1-100
Moderator:DECWET::RANDALL.com::lenox
Created:Thu Oct 10 1996
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:750
Total number of notes:3361

429.0. "NSR Pre Post processing question" by ALFSS2::ZURIK_E () Thu Feb 20 1997 08:11

    I need help understanding how -pre and  - post processing work.
    
    I am using the script on page 51 of the Admin Guide for 4.2a
    It is a s follows:
    
    #!/bin/sh
    case $0 in
    /* )PATH=/bin:/usr/bin:`/bin/dirname $0`
    c=`/bin/basename $0`
    ;;
    * )PATH=/bin:/usr/bin:/usr/sbin
    c=$0
    ;;
    esac
    export PATH
    # print message at start of backup
    echo "$c": backup started at `date`
    # perform backup on client
    save "$@" > /tmp/saveout$$ 2>&1
    # print message at completion of backup
    echo "$c": backup complete at `date`
    # print save output last for savgrp
    cat /tmp/saveout$$
    # rm -f /tmp/saveout$$
    exit 0
     
    
    The file is called savemsg and is located in /usr/bin
    
    -rwxr-xr-x   1 root     system       435 Feb 20 09:23 savemsg
    
    I can execute the following command manually or from crontab and it
    works as expected.
    
    /usr/bin/savemsg /nsrtest
    
    I have a group called ClassServer consisting of clients gene and sable.
    
    In the admin window I click clients- client setup -  highlight
    gene.alf.dec.com  and enter savemsg /nsrtest in the backup command
    space.
    
    Next I select group control and start group ClassServer
    
    I wouls expect sable to do its normal backup and gene backup only
    /nsrtest instead of all.
    
    Here is what happens.
    
    NetWorker Savegroup: (notice) ClassServer completed, 2 clients
    (gene.alf.dec.com Failed)
    Start time:   Thu Feb 20 09:54:24 1997
    End time:     Thu Feb 20 09:56:42 1997
    
    --- Unsuccessful Save Sets ---
    
    * gene.alf.dec.com:/ ! no output
    * gene.alf.dec.com:/usr ! no output
    * gene.alf.dec.com:/nsr ! no output
    * gene.alf.dec.com:/junk ! no output
    
    --- Successful Save Sets ---
    
      sable.alf.dec.com: /              level=incr,      2 KB 00:00:26     
    2 files
      gene.alf.dec.com: /nsr/index/sable.alf.dec.com level=9, 497 KB
    00:00:28      2 files
    
      gene.alf.dec.com: /nsr/index/gene.alf.dec.com level=9, 356 KB
    00:00:28      5 files
      gene.alf.dec.com: bootstrap       level=9,        87 KB 00:00:26    
    11 files
    
    
    /nsrtest never gets backed up
    
    Thanks in advance for your help.
    
    Gene
    NSR support 
    
    
T.RTitleUserPersonal
Name
DateLines
429.1DECWET::RANDALLThu Feb 20 1997 11:098
Gene,

If you only want to backup /nsrtest then you have to take 'All' out of
the 'Save set:' entry and put /nsrtest instead.  Then for 'Backup command:'
specify only 'savemsg'.  You shouldn't put anything other than a path and script
name in to the 'Backup command' space.

-- Rich Randall