Bacula-users

[Bacula-users] restore: file selection not possible

2008-04-21 12:23:17
Subject: [Bacula-users] restore: file selection not possible
From: gunnar_thielebein AT gmx DOT net
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 21 Apr 2008 17:59:14 +0200
We have several jobs running for different file stores: 
 
 - data
 - home
 - ldap

and so on. For most jobs we did a restore test and it is always possible to 
select files which should be restored.
Only problem is when restoring from the home backup job which is also the 
biggest one:

>> 2000 OK estimate files=308464 bytes=16,829,731,0

The selection of files is not possible from this one.

> *list files jobid=168
> No results to list.
>+-------+------------------+---------------------+------+-------+----------+----------------+-----------+
>| jobid | name             | starttime           | type | level | jobfiles | 
>jobbytes       | jobstatus |
>+-------+------------------+---------------------+------+-------+----------+----------------+-----------+
>|   168 | amun-backup_home | 2008-04-21 14:38:01 | B    | F     |  308,384 | 
>16,824,566,086 | T         |
>+-------+------------------+---------------------+------+-------+----------+----------------+-----------+

with running the restore in bconsole I get the message:

>"There were no files inserted into the tree, so file selection
>is not possible.Most likely your retention policy pruned the files
>Do you want to restore all the files? (yes|no):"

When running the job in Differential Mode it is possible to restore files

> *list files jobid=118  
> ...filelist
>+-------+------------------+---------------------+------+-------+----------+-------------+-----------+
>| jobid | name             | starttime           | type | level | jobfiles | 
>jobbytes    | jobstatus |
>+-------+------------------+---------------------+------+-------+----------+-------------+-----------+
>|   118 | amun-backup_home | 2008-04-18 01:08:31 | B    | D     |    4,282 | 
>316,771,833 | T         |
>+-------+------------------+---------------------+------+-------+----------+-------------+-----------+

Our Database Backend is pgsql.
The configuration:

> JobDefs {
>   Name = def_backup_home
>   Type = Backup
>   Level = Differential
>   FileSet = home_dir
>   Pool = daily_pool
>   Storage = daily_storage
>   Max Start Delay = 28800
>   Max Wait Time = 28800
>   Max Run Time = 28800
>   Messages = default
>   Priority = 10
> }
>
> Job {
>   Name = amun-backup_home
>   Client = amun-fd
>   JobDefs = def_backup_home
>   Write Bootstrap = "/var/lib/bacula/bootstraps/amun-backup_home.bsr"
>   Schedule = default_backup
>   Enabled = Yes
> }
>
> Schedule {
>   Name = default_backup
>   # daily backup on working days
>   Run = Level=Differential Pool=daily_pool Storage=daily_storage on tue-sat
> on 2-31 at 01:00 # the weekly backup
>   Run = Level=Full Pool=weekly_pool Storage=weekly_storage on sun on 2-31
> at 01:00 # the monthly backup
>   Run =  Level=Full Pool=monthly_pool Storage=monthly_storage on 1 at 
> 01:00 }
>
> FileSet {
>   Name = home_dir
>   Include {
>     Options {
>       signature=MD5
>       verify=pins5
>     }
>     File = /home
>   }
> }
>
> Client {
>   Name = amun-fd
>   Address = amun.tpip.net
>   FDPort = 9102
>   Catalog = Travelping
>   Password = EurlX+NsdKgey3tUiATfQyfxiSy3c6uZdjU/gms5Jef9
>   AutoPrune = Yes
>   Job Retention = 1 year
>   File Retention = 1 year
> }
>
> Pool {
>   Name = weekly_pool
>   Pool Type = Backup
>   Maximum Volumes = 5
>   AutoPrune = Yes
>   Recycle = Yes
>   Recycle Oldest Volume = Yes
>   # WeekCounter need to be synced with week of month
>   LabelFormat = "weekly-${CounterWeek+}"
>   Volume Retention = 34 days
>   Volume Use Duration = 72 hours
> }

>> * show pools
>> Pool: name=weekly_pool PoolType=Backup
>    use_cat=1 use_once=0 cat_files=1
>    max_vols=5 auto_prune=1 VolRetention=1 month 4 days
>    VolUse=3 days  recycle=1 LabelFormat=weekly-${CounterWeek+}
>    CleaningPrefix=*None* LabelType=0
>    RecyleOldest=1 PurgeOldest=0
>    MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
>    MigTime=0 secs MigHiBytes=0 MigLoBytes=0

Regards,

Gunnar Thielebein


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>