Networker

[Networker] Report for Cloned Data

2009-06-30 13:09:15
Subject: [Networker] Report for Cloned Data
From: ramkriz <networker-forum AT BACKUPCENTRAL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 30 Jun 2009 13:04:39 -0400
Hi,

I do send the tapes to off-site once in a week (ex: every monday) and I execute 
the following script to make sure that the datas were cloned 100% before 
sending tapes to off-site.

#!/bin/sh
#
#
# This script is used to update the Clone in tape media
#
#
#
DEFAULT_SSID_FILE=default_ssid_file.txt   # List of Default Pool SSID
DEFAULT_CLONE_SSID_FILE=default_clone_ssid_file.txt   # List of Default Clone 
Pool SSID
CLONE_FILE=clone_file.txt   # List of SSID's which need to be updated from 
Default Pool to Default Clone Pool
#
#
#
# To save Default Pool SSID's
# 
mminfo -q 'savetime>=last week,pool="Default"' -r ssid > $DEFAULT_SSID_FILE
#
#
# To save Default Clone Pool SSID's
#
mminfo -q 'savetime>=last week,pool="Default Clone"' -r ssid > 
$DEFAULT_CLONE_SSID_FILE
#
cp -p $DEFAULT_SSID_FILE $CLONE_FILE
#
#
# To get the list of SSID's which need to be updated from Default Pool to 
Default Clone Pool
#
for i in `cat $DEFAULT_CLONE_SSID_FILE`
do sed "/$i/d" $CLONE_FILE > clone_file.tmp
mv clone_file.tmp $CLONE_FILE
done
#
#
# To update from Default Pool to Default Clone Pool
#
nsrclone -b 'Default Clone' -S -f $CLONE_FILE
#
#
#
echo "Cloning completed successfully"
#
#

+----------------------------------------------------------------------
|This was sent by ramkriz AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

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>