Bacula-users

Re: [Bacula-users] Prefer disks over tape in restoring

2016-01-22 05:19:19
Subject: Re: [Bacula-users] Prefer disks over tape in restoring
From: Andrea Venturoli <ml AT netfence DOT it>
To: "Ana Emília M. Arruda" <emiliaarruda AT gmail DOT com>
Date: Fri, 22 Jan 2016 11:17:20 +0100
On 01/22/16 11:01, Ana Emília M. Arruda wrote:
> Hello Andrea,

Hello and thanks for your answer.





> Do you have 2 different jobs to accomplish this? I do not understand
> what do you mean when you say "The Fileset is the same for both jobs".

Yes.
See the extract of my bacula-dir.conf:

> Job {
>   Name="BackupData"
>   JobDefs = "DefaultJob"
>   FileSet="Data"
>   Client Run Before Job = 
> /usr/local/netfence/local/bin/bacula/preparebackup_Data.sh
>   Client Run After Job = 
> /usr/local/netfence/local/bin/bacula/afterbackup_Data.sh
>   Priority=1
> }
> Job {
>   Name="BackupCatalog"
>   JobDefs = "DefaultJob"
>   FileSet="Catalog"
>   RunBeforeJob = "/usr/local/share/bacula/make_catalog_backup bacula bacula"
>   RunAfterJob  = "/usr/local/share/bacula/delete_catalog_backup"
>   Write Bootstrap = "/var/db/bacula/BackupCatalog.bsr"
>   Priority = 11                   # run after main backup
> }
> Job {
>   Name="DBackupData"
>   JobDefs = "DefaultJob"
>   FileSet="Data"
>   Schedule="MonthlyWeeklyDaily"
>   Client Run Before Job = 
> /usr/local/netfence/local/bin/bacula/preparebackup_Data.sh
>   Client Run After Job = 
> /usr/local/netfence/local/bin/bacula/afterbackup_Data.sh
>   Priority=1
>   Full Backup Pool=Full
>   Incremental Backup Pool=Inc
>   Differential Backup Pool=Diff
> }
> Job {
>   Name="DBackupCatalog"
>   JobDefs = "DefaultJob"
>   FileSet="Catalog"
>   Schedule="MonthlyWeeklyDaily"
>   RunBeforeJob = "/usr/local/share/bacula/make_catalog_backup bacula bacula"
>   RunAfterJob  = "/usr/local/share/bacula/delete_catalog_backup"
>   Priority = 11                   # run after main backup
>   Pool=Full
> }
> Job {
>   Name="RestoreFiles"
>   Type = Restore
>   Client=Data-fd
>   FileSet="Data"
>   Storage = DAT160
>   Pool=Tapes
>   Messages = Standard
>   Where = /tmp/bacula-restores
> }







> If you use different jobs, one for doing the disk backups (monthly full
> and daily diff/incr) and another one for the tape backups (weekly full),
> both with the same FileSet, the daily diff/incr disk backups should
> reference the monthly full disk backups and not the weekly full tape
> backups.

That's what I thought too, but it doesn't seem to happen.
If I "restore" and "Select the most recent backup for a client", I'm 
presented to choose the FileSet (either "Data" or "Catalog"), not the 
storage or job.
Choosing "Data" I get:

> +-------+-------+----------+-----------------+---------------------+------------+
> | jobid | level | jobfiles | jobbytes        | starttime           | 
> volumename |
> +-------+-------+----------+-----------------+---------------------+------------+
> | 1,174 | F     |  700,309 | 127,903,911,237 | 2016-01-12 20:01:58 | Tape009  
>   |
> | 1,174 | F     |  700,309 | 127,903,911,237 | 2016-01-12 20:01:58 | Tape010  
>   |
> | 1,186 | D     |   55,614 |   6,397,616,958 | 2016-01-17 22:46:48 | Diff0085 
>   |
> | 1,188 | I     |   20,508 |   3,672,664,590 | 2016-01-18 22:46:48 | Inc0078  
>   |
> | 1,197 | I     |   38,643 |   5,146,141,599 | 2016-01-20 22:46:37 | Inc0079  
>   |
> | 1,205 | I     |   24,620 |   4,515,300,651 | 2016-01-21 22:46:42 | Inc0082  
>   |
> +-------+-------+----------+-----------------+---------------------+------------+
 > You have selected the following JobIds: 1174,1186,1188,1197,1205



  bye & Thanks
        av.

P.S. I'm using Bacula 7.2.0.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users