Hello Ulrich
I'm just beginning to use copy jobs. Love em!
What I'm doing is having a one to one relationship between tape pools
and File pools. ie
File-MonWed <-> LTO_MonWed
File-Monthly <-> LTO_Monthly
.. ..
Then add one Copy job per pool.
Copy-MonWed
Copy-Monthly
.. ..
Then add one scripty thing,
RunScript {
Command = "/root/bin/php/baculatriggercopy.php %v"
RunsWhen = After
RunsOnFailure = yes
RunsOnClient = no
RunsOnSuccess = yes # default, you can drop this line
}
where baculatriggercopy.php
where to summarize what bacula trigger copy does it
select the pool from the database then knowing the pool
$job = preg_replace('/File-/', "Copy-", $pool);
$concmd = "run job=\"$job\" fileset=\"VariesSet\" level=\"Full\" client=
\"srvalum3-fd\" pool=\"$pool\" storage=\"Alum2FileStorage\" priority=
\"10\" yes ";
Then I get all uncopied jobs copied from the appropiate file pool to the
appropriate tape pool.
Now I don't know if that was the way intended but it seems to be working
for the last couple of weeks.
Dirk
On Mon, 2009-06-08 at 13:58 +0200, Ulrich Leodolter wrote:
> Hello,
>
> i would like to run disk2tape copy jobs
> into different pools.
>
> the current version (3.0.2) doesn't allow this setup (afaik)
> there is only one NextPool which determines the destination
> pool for copy jobs.
>
> i tried a "trick" to overcome this limitation.
>
> 1.) define a dummy pool, no backup jobs go into this pool.
>
> Pool {
> Name = ExtBackup
> Pool Type = Backup
> Next Pool = ExtClone
> }
>
> 2.) define a copy job using the above dummy pool and
> custom sqlquery to select jobid from different pool.
>
> Job {
> Name = "CopyDiskToExtClone"
> Type = Copy
> Client = None
> Level = Full # must be defined, but is ignored
> FileSet = None # must be defined, but is ignored
> Pool = ExtBackup
> Selection Type = SQLQuery
> Selection Pattern = "SELECT DISTINCT Job.JobId FROM Job,Pool WHERE
> Pool.Name = 'DiskBackup' AND Pool.PoolId = Job.PoolId AND ..."
> ...
> }
>
> using this method i was able top copy jobs from pool DiskBackup
> to pool ExtClone, even though DiskBackup->NextPool = DiskCopy
>
>
> can i expect troubles using this trick?
>
> Regards
> Ulrich
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|