Networker

Re: [Networker] How to duplicate a client from command line?

2006-06-28 10:35:39
Subject: Re: [Networker] How to duplicate a client from command line?
From: Davina Treiber <DavinaTreiber AT PEEVRO.CO DOT UK>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 28 Jun 2006 15:25:56 +0100
Voetelink D. wrote:
> Manel Rodero wrote:
> 
>> I'm trying to create an script for duplicating clients from command line.
>> The idea is the following:
>>
>> - I have more than 100 clients defined with its savesets and arranged
>> in the
>> "normal" backup group (with the "normal" retention and browse policy
>> of 28
>> days)
>> - Two times a year I need to do an "special" backup with a different
>> retention policy (1 year)
> 
> [...]
> 
>> So the idea is create an script similar to this:
>>
>> - The day of the special backup execute an script that
>> - Lists all the clients in the normal group and duplicate them chaging
>> the
>> retention/browse policy and the backup group
>> - Do the backup (start the group)
>> - When the backup finishes, erase these special clients (the data in the
>> tapes will not be erased because of its 1 year retention policy)
>>
>> If we need to recover data from these special backups (rarely), we will
>> recreate the necessary client and recover its data.
>>
>> Any ideas about how to solve this problem? Any other ideas?
> 
> Why not make the 'spacial' backup with the normal client definitions
> and, after the group has completed, use mminfo & nsrmm to alter the
> retention policy of all save sets?  e.g.
> % nsrmm -S 12345 -w "1 year" -e "1 year"
> 
>

That would work, or even simpler, override the browse and retention for
the special backup by running it from the command line and adding -w and
-y parameters. It gets slightly more complicated though if you want to
write these to a different pool.

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
wit 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