Networker

Re: [Networker] Running a client script before an incremental backup?

2011-04-14 13:04:13
Subject: Re: [Networker] Running a client script before an incremental backup?
From: "Werth, Dave" <dave.werth AT GARMIN DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 14 Apr 2011 10:03:20 -0700
As the others mentioned "savepnpc" is the NetWorker method for running scripts 
in concert with a backup.

I offer another method that may be worth looking at.  This is a way to initiate 
the group backup from the client rather than having it initiated from the 
server.  We use it to backup and delete our Oracle redo log archives once the 
file system they are on reaches a certain level of fullness.

The crux of the script I use is at the bottom of this message.  (Note, the 
script is written for "ksh" on Solaris 7.) Of course you can do anything you 
want before and after that part of the script.  It allows you to control when 
the backup runs from the client rather than depending on the timing working out 
for a scheduled backup and an independent process on a client.


Dave Werth
Garmin AT, Inc.
Salem, Oregon
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On 
Behalf Of Paul Key
Sent: Thursday, April 14, 2011 1:36 AM

Sun StorageTek(TM) Enterprise Backup 7.4,REV=634 Network Edition/65535

I am looking to back up a ZFS snapshot incrementally every night.  I
have a script to run and rename the snapshot.   Is there an option of
executing a script on the client (solaris 10) in this case to perform
the snapshot before the scheduled incremental starts? i.e. when the
scheduled group begins it first executes a script on the client and then
performs an incremental backup?

Thanks for your help

Paul

=========================================
# start oracle redo logs save
echo "
  . type: NSR group;
  name: Oracle-redologs
  update Autostart: Start now" | nsradmin -s NwkrServ -i -

# Check status, wait until done
StatF=/tmp/RDLstat$$.tmp
sgDone=0
while [ sgDone -eq 0 ]
do
 sleep 30
 echo "
  show status
  print type: NSR group;
  name: Oracle-redologs" | nsradmin -s NwkrServ -i - > $StatF
#
  if grep "status: idle;" $StatF
  then
        sgDone=1
  fi
done
==========================================

This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient. If you are not the intended recipient, please be 
aware that any disclosure, copying, distribution or use of this e-mail or any 
attachment is prohibited. If you have received this e-mail in error, please 
contact the sender and delete all copies.

Thank you for your cooperation.

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>