Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

customizing the clone operation?? 1

Status
Not open for further replies.

millerson

IS-IT--Management
Joined
Mar 21, 2006
Messages
25
Location
TR
Hi guys,

Is it possible to say that
clone the save sets in time range(17/032006-22/03/2006) and have not cloned before.

I am having cloning problem therefore I ve started clone operaration manually som day. And now I want to clone save set that ? could not cloned last week..

Thanks..
 
The only way to schedule clone operations (to my knowledge) is by using crontab on Unix or Sheduled Task on Windows, and runing a script that uses mminfo to find the savesets to clone. To find savesets that are not cloned, use the "copies" flag in mminfo. If the saveset you want to clone is located on a tape, and has not been cloned, it will have copies 1. If it however resides on a advanced filetype disk device, it will have copies 2, even if it is not cloned. One copy will reside on the read-write device and another on the read-only device. So you will need to use different mminfo commands depeding on this. The below (very simple) sample script (unix) should list all ssid´s (and their cloneids) that have only 1 copy, and then clone them to pool 'test123'. You will probably need to add a few querys to suit your needs.

---
mminfo -av -xc/ -r ssid,cloneid -q "!incomplete,copies=1" | sed 1d > $LISTFILE

while read SSID
do
nsrclone -v -b test123 -S $SSID
done < $LISTFILE
---

Cheers!
Maverick
 
? ve used the command
mminfo -r "ssid,cloneid,client,name,savetime" -q "copies<2,savetime>3/18/06"

for selecting the savesets that have 1 copies and in given time range.

Thanks for the help...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top