SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
RunAfterJob
Author Message
Post RunAfterJob 
Hello List,

i would like to do something with each created volume.
By using the RunAfterJob command and the %v variable it turned out, that
%v contains only the last volume.

For example:
After a Full Job created 12 Volumes, each 250MB big, the command here:
RunAfterJob = "md5sum %v"
Results in "md5sum %v volume0012".

Is there something like RunAfterVolume?

Cheers, Mario

Post RunAfterJob 
Hi,

On 6/15/2007 5:21 PM, ml < at > bo... wrote:
Hello List,

i would like to do something with each created volume.

With or to the volumes?

;-)

By using the RunAfterJob command and the %v variable it turned out, that
%v contains only the last volume.

Jup.

For example:
After a Full Job created 12 Volumes, each 250MB big, the command here:
RunAfterJob = "md5sum %v"
Results in "md5sum %v volume0012".

Is there something like RunAfterVolume?

No, but you could pass the jobid to your script and extract the volumes
it used from the catalog. I think.

Arno

Cheers, Mario

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Post RunAfterJob 
Hello Arno, Hello List,

i found this in google:
http://mailinglist-archive.com/bacula.user/2003-10/msg00407.html

Mr. Kern added the %v option, but it seems it either got removed in
bacula 2.0.3 or it changed.

Then i finally found the substitution list:
http://www.bacula.org/dev-manual/DVD_Volumes.html
But there again, i wont be able to get the Filename so that i can pass
the to further scripts.

Can anyone commet this?

Thanks, Mario

Arno Lehmann schrieb:
Hi,

On 6/15/2007 5:21 PM, ml < at > bo... wrote:

Hello List,

i would like to do something with each created volume.


With or to the volumes?

;-)


By using the RunAfterJob command and the %v variable it turned out, that
%v contains only the last volume.


Jup.


For example:
After a Full Job created 12 Volumes, each 250MB big, the command here:
RunAfterJob = "md5sum %v"
Results in "md5sum %v volume0012".

Is there something like RunAfterVolume?


No, but you could pass the jobid to your script and extract the volumes
it used from the catalog. I think.

Arno


Cheers, Mario

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users




Post RunAfterJob 
Hi,

On 6/15/2007 11:07 PM, ml < at > bo... wrote:
Hello Arno, Hello List,

i found this in google:
http://mailinglist-archive.com/bacula.user/2003-10/msg00407.html

Mr. Kern added the %v option, but it seems it either got removed in
bacula 2.0.3 or it changed.

Then i finally found the substitution list:
http://www.bacula.org/dev-manual/DVD_Volumes.html
But there again, i wont be able to get the Filename so that i can pass
the to further scripts.

The manual section you mention explicitly refers to DVD devices. There
the file is a part file, and there can only be one part file.

Anyway ask the catalog for media related to the job in question. A
starting point might be:

bacula/root < at > goblin /root # mysql -h elf -u bacula -pyesverysecret -e
"select distinct VolumeName from JobMedia,Media where JobId=10171 and
JobMedia.MediaId=Media.MediaId;" -Ns bacula
DLT-IV-0022
DLT-IV-0030
DLT-IV-0031

Replace the static jobId with $1 from your script execution and you've
almost got what you need... you could also use bconsole and the query
"List Volumes used by selected JobId:".

Arno

Can anyone commet this?

Thanks, Mario




Arno Lehmann schrieb:
Hi,

On 6/15/2007 5:21 PM, ml < at > bo... wrote:

Hello List,

i would like to do something with each created volume.

With or to the volumes?

;-)


By using the RunAfterJob command and the %v variable it turned out, that
%v contains only the last volume.

Jup.


For example:
After a Full Job created 12 Volumes, each 250MB big, the command here:
RunAfterJob = "md5sum %v"
Results in "md5sum %v volume0012".

Is there something like RunAfterVolume?

No, but you could pass the jobid to your script and extract the volumes
it used from the catalog. I think.

Arno


Cheers, Mario

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Post RunAfterJob 
Hello,
On 6/15/2007 11:07 PM, ml < at > bo... wrote:

Hello Arno, Hello List,

i found this in google:
http://mailinglist-archive.com/bacula.user/2003-10/msg00407.html

Mr. Kern added the %v option, but it seems it either got removed in
bacula 2.0.3 or it changed.

Then i finally found the substitution list:
http://www.bacula.org/dev-manual/DVD_Volumes.html
But there again, i wont be able to get the Filename so that i can pass
the to further scripts.


The manual section you mention explicitly refers to DVD devices. There
the file is a part file, and there can only be one part file.

Anyway ask the catalog for media related to the job in question. A
starting point might be:

bacula/root < at > goblin /root # mysql -h elf -u bacula -pyesverysecret -e
"select distinct VolumeName from JobMedia,Media where JobId=10171 and
JobMedia.MediaId=Media.MediaId;" -Ns bacula
DLT-IV-0022
DLT-IV-0030
DLT-IV-0031

Replace the static jobId with $1 from your script execution and you've
almost got what you need... you could also use bconsole and the query
"List Volumes used by selected JobId:".


Is there a way to do this within/inside bacula?
I dont want to touch my dvd-writer script since i used it for other
purposes, too.



Re: [Bacula-users] Benchmarking Bacula From: Kyle Marsh

I don't know how much information and automation you're looking for,
but when I was testing, I ran a full backup of Documents and Settings
on a fresh Windows install and got 4.2GB. For me it took about 9.5
minutes for the backup. Haven't tried a full restore.

~Kyle

On 6/16/07, Gaurav Pruthi <gkpruthi < at > gm...> wrote:
Hi,

I have installed bacula but before taking it online to take backups of
servers, I would like to test the throughput of Bacula. I have to test it
with storage as File. I am looking for a script using which i could check
the throughput of Bacula (Atleast 3-5 GB bacuup/restore) and convince the
mgmt to implement bacula as network backup system. I shall be grateful if
anyone provide me the required script.

Thanks,
Gaurav Pruthi
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users



Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB