Le Wednesday 15 October 2008 20:55:56 Tomasz Westrych, vous avez écrit :
> Hello,
>
> Thanks for answer, I have managed to set up copy tape to tape and it works.
>
> I have 2 questions:
>
> 1. After installing ver 2.5.12 it worked fine but once I have changed some
> config in bacula-dir.conf I coudn't start Director error I had was:
> 15-Oct 18:41 bacula-dir JobId 0: Fatal error: Could not open Catalog
> "MyCatalog", database "bacula".
> 15-Oct 18:41 bacula-dir JobId 0: Fatal error: Version error for database
> "bacula". Wanted 10, got 11
> 15-Oct 18:41 bacula-dir ERROR TERMINATION
> Please correct configuration file: /etc/bacula/bacula-dir.conf
>
> After this I had to restore my database from backup and then it worked
> fine.
>
> Is there needed to upgrade bacula database after installation? I've
> upgraded from 2.4.2 to 2.5.12.
I suppose that you have run the upgrade script, and it changes the Catalog
version to 11 but the code checks against version 10. I will try to fix this.
> 2. I want to run ClientRunAfterJob after copy Job (script that cleans files
> from backuped folder) but is seems to omit that, what can be wrong?
A copy job doesn't use the client, so using ClientRunAfterJob is maybe not
possible.
> _____________________
>
> My config is:
> _____________________
> JobDefs {
> Name = "DefaultJob"
> Type = Backup
> Level = Incremental
> Client = serwer_bacula-fd
> FileSet = "serwer_baculaFS"
> Schedule = "WeeklyCycle"
> Messages = Standard
> Pool = VTS1ARCH
> Priority = 10
> }
>
> FileSet {
> Name = "serwer_baculaFS"
> Include {
> Options {
> signature = MD5
> }
> File = /tmp/test1/
> }
> }
>
> Job {
> Name = "Serwer_backupu"
> JobDefs = "DefaultJob"
> Write Bootstrap = "/var/bacula/working/serwer_bacula.bsr"
> ClientRunBeforeJob = "/etc/bacula/move_archived_exports"
> RunAfterJob = "/etc/bacula/run_kopia_job"
> }
>
> Job {
> Name = "Serwer_backupukopia"
> Type = Copy
> Level = Full
> Client = serwer_bacula-fd
> FileSet = "Full Set"
> Messages = Standard
> Pool = VTS1ARCH
> Selection Type = SQLQuery
> Selection Pattern = "SELECT MAX(JobId) FROM Job WHERE
> Name='Serwer_backupu' AND JobStatus ='T';"
> ClientRunAfterJob = "/etc/bacula/delete_archived_exports"
> <- it's not running
> }
>
> ###########################################################################
># ##############################################
>
> I'll attach some log, it's a bit long , sorry...
>
> 16-Oct 00:14 serwer_bacula JobId 18115: Start Backup JobId 18115,
> Job=Serwer_backupu.2008-10-16_00.14.03
> 16-Oct 00:14 serwer_bacula JobId 18115: Using Device "Drive-2"
> 16-Oct 00:14 serwer_bacula-fd JobId 18115: shell command: run
> ClientRunBeforeJob "/etc/bacula/move_archived_exports"
> 16-Oct 00:14 serwer_bacula-sd JobId 18115: 3307 Issuing autochanger "unload
> slot 4012, drive 0" command.
> 16-Oct 00:14 serwer_bacula-sd JobId 18115: 3304 Issuing autochanger "load
> slot 4013, drive 0" command.
> 16-Oct 00:14 serwer_bacula-sd JobId 18115: 3305 Autochanger "load slot
> 4013, drive 0", status is OK.
> 16-Oct 00:14 serwer_bacula-sd JobId 18115: Wrote label to prelabeled Volume
> "Y04013" on device "Drive-2" (/dev/tape2)
> 16-Oct 00:14 serwer_bacula JobId 18115: Max Volume jobs exceeded. Marking
> Volume "Y04013" as Used.
> 16-Oct 00:14 serwer_bacula-sd JobId 18115: Job write elapsed time =
> 00:00:01, Transfer rate = 11.01 M bytes/second
> 16-Oct 00:14 serwer_bacula JobId 18115: Bacula serwer_bacula 2.5.12
> (07Oct08): 16-Oct-2008 00:14:36
> Build OS: s390x-ibm-linux-gnu suse 10
> JobId: 18115
> Job: Serwer_backupu.2008-10-16_00.14.03
> Backup Level: Incremental, since=2008-10-16 00:07:48
> Client: "serwer_bacula-fd" 2.5.12 (07Oct08)
> s390x-ibm-linux-gnu,suse,10
> FileSet: "serwer_baculaFS" 2008-10-15 19:11:02
> Pool: "VTS1ARCH" (From Job resource)
> Catalog: "MyCatalog" (From Client resource)
> Storage: "VTS-Robot" (From Pool resource)
> Scheduled time: 16-Oct-2008 00:14:04
> Start time: 16-Oct-2008 00:14:08
> End time: 16-Oct-2008 00:14:36
> Elapsed time: 28 secs
> Priority: 10
> FD Files Written: 2
> SD Files Written: 2
> FD Bytes Written: 11,013,921 (11.01 MB)
> SD Bytes Written: 11,014,095 (11.01 MB)
> Rate: 393.4 KB/s
> Software Compression: None
> VSS: no
> Encryption: no
> Accurate: no
> Volume name(s): Y04013
> Volume Session Id: 1
> Volume Session Time: 1224108791
> Last Volume Bytes: 11,096,064 (11.09 MB)
> Non-fatal FD errors: 0
> SD Errors: 0
> FD termination status: OK
> SD termination status: OK
> Termination: Backup OK
>
> 16-Oct 00:14 serwer_bacula JobId 18115: Begin pruning Jobs.
> 16-Oct 00:14 serwer_bacula JobId 18115: No Jobs found to prune.
> 16-Oct 00:14 serwer_bacula JobId 18115: Begin pruning Files.
> 16-Oct 00:14 serwer_bacula JobId 18115: No Files found to prune.
> 16-Oct 00:14 serwer_bacula JobId 18115: End auto prune.
>
> 16-Oct 00:14 serwer_bacula JobId 18115: shell command: run AfterJob
> "/etc/bacula/run_kopia_job"
> 16-Oct 00:14 serwer_bacula JobId 18115: AfterJob: Connecting to Director
> 126.177.54.98:9101
> 16-Oct 00:14 serwer_bacula JobId 18115: AfterJob: 1000 OK: serwer_bacula
> Version: 2.5.12 (07 October 2008)
> 16-Oct 00:14 serwer_bacula JobId 18115: AfterJob: Enter a period to cancel
> a command.
> 16-Oct 00:14 serwer_bacula JobId 18115: AfterJob: @output
> /etc/bacula/bacula.out
> 16-Oct 00:14 serwer_bacula JobId 18116: The following 1 JobId was chosen to
> be copied: 18115
> 16-Oct 00:14 serwer_bacula JobId 18116: Copying using JobId=18115
> Job=Serwer_backupu.2008-10-16_00.14.03
> 16-Oct 00:14 serwer_bacula JobId 18116: Bootstrap records written to
> /var/bacula/working/serwer_bacula.restore.1.bsr
> 16-Oct 00:14 serwer_bacula JobId 18116: Start Copying JobId 18116,
> Job=Serwer_backupukopia.2008-10-16_00.14.05
> 16-Oct 00:14 serwer_bacula JobId 18116: Using Device "Drive-4"
> 16-Oct 00:14 serwer_bacula-sd JobId 18116: Ready to read from volume
> "Y04013" on device "Drive-2" (/dev/tape2).
> 16-Oct 00:14 serwer_bacula-sd JobId 18116: 3307 Issuing autochanger "unload
> slot 4007, drive 0" command.
> 16-Oct 00:14 serwer_bacula-sd JobId 18116: 3304 Issuing autochanger "load
> slot 4008, drive 0" command.
> 16-Oct 00:21 serwer_bacula-sd JobId 18116: 3305 Autochanger "load slot
> 4008, drive 0", status is OK.
> 16-Oct 00:22 serwer_bacula-sd JobId 18116: Wrote label to prelabeled Volume
> "Y54008" on device "Drive-4" (/dev/tape4)
> 16-Oct 00:22 serwer_bacula JobId 18116: Max Volume jobs exceeded. Marking
> Volume "Y54008" as Used.
> 16-Oct 00:22 serwer_bacula-sd JobId 18116: Forward spacing Volume "Y04013"
> to file:block 1:1.
> 16-Oct 00:22 serwer_bacula-sd JobId 18116: End of file 2 on device
> "Drive-2" (/dev/tape2), Volume "Y04013"
> 16-Oct 00:22 serwer_bacula-sd JobId 18116: End of file 3 on device
> "Drive-2" (/dev/tape2), Volume "Y04013"
> 16-Oct 00:22 serwer_bacula-sd JobId 18116: End of Volume at file 3 on
> device "Drive-2" (/dev/tape2), Volume "Y04013"
> 16-Oct 00:22 serwer_bacula-sd JobId 18116: End of all volumes.
> 16-Oct 00:22 serwer_bacula JobId 18116: Bacula serwer_bacula 2.5.12
> (07Oct08): 16-Oct-2008 00:22:02
> Build OS: s390x-ibm-linux-gnu suse 10
> Prev Backup JobId: 18115
> New Backup JobId: 18117
> Current JobId: 18116
> Current Job: Serwer_backupukopia.2008-10-16_00.14.05
> Backup Level: Full
> Client: serwer_bacula-fd
> FileSet: "Full Set" 2007-10-20 23:05:00
> Read Pool: "VTS1ARCH" (From Job resource)
> Read Storage: "VTS-Robot" (From Pool resource)
> Write Pool: "VTS2ARCH" (From Job Pool's NextPool resource)
> Write Storage: "VTS-Robot2" (From Storage from Pool's NextPool
> resource)
> Catalog: "MyCatalog" (From Client resource)
> Start time: 16-Oct-2008 00:14:38
> End time: 16-Oct-2008 00:22:02
> Elapsed time: 7 mins 24 secs
> Priority: 10
> SD Files Written: 2
> SD Bytes Written: 11,014,095 (11.01 MB)
> Rate: 24.8 KB/s
> Volume name(s): Y54008
> Volume Session Id: 2
> Volume Session Time: 1224108791
> Last Volume Bytes: 11,096,064 (11.09 MB)
> SD Errors: 0
> SD termination status: OK
> Termination: Copying OK
>
> 16-Oct 00:22 serwer_bacula JobId 18116: Begin pruning Jobs.
> 16-Oct 00:22 serwer_bacula JobId 18116: No Jobs found to prune.
> 16-Oct 00:22 serwer_bacula JobId 18116: Begin pruning Files.
> 16-Oct 00:22 serwer_bacula JobId 18116: No Files found to prune.
> 16-Oct 00:22 serwer_bacula JobId 18116: End auto prune.
>
>
> Best regards,
>
> Tomasz
>
> -----Wiadomość oryginalna-----
> Od: Kern Sibbald [mailto:[EMAIL PROTECTED]
> Wysłano: 8 października 2008 15:32
> Do: [email protected]
> DW: [EMAIL PROTECTED]
> Temat: Re: [Bacula-devel] Bacula copy pools , volumes option
>
> On Wednesday 08 October 2008 09:01:41 [EMAIL PROTECTED] wrote:
> > Hello,
> >
> > I'd like to ask if it is planed to implement copy pools , volumes in
> > new version of bacula. It would be great functionality. I would be
> > able to make copies of backed-up data from tape to tape into few pools
> > without running the same job with different pool setting.
> >
> > I'm very interested in testing this solution if there is any beta
> > version we can test.
>
> Yes, this functionality exists in the current development version of
> Bacula.
>
> If you want to know about the new features, please see:
>
> http://www.bacula.org/manuals/en/concepts/concepts/New_Features.html
>
> Best regards,
>
> Kern
>
> > Best regards,
> >
> > Tomasz
> >
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel