Michel Meyers wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Michel Meyers wrote: > >> Did you maybe set the File Retention lower than the Job retention? >> >> http://www.bacula.org/dev-manual/Catalog_Maintenance.html#SECTION002410000000000000000 >> >> If so, then your File Entries will be gone (even though the job is still >> in the DB for reference) and you will have to reimport them. >> > > Small correction to my own mail: According to the manual, you can still > restore the ENTIRE job if the job record is there, you just won't be > able to select specific files. (ie it's an all or nothing restore) > > Greetings, > Michel > Michel,
I think you may be right about the File Retention vs. Job Retention--see config below. I have no problem with restoring the entire job, but it doesn't seem to work, if I understand you correctly. Here is a synopsis of what I did: 1. Use Query command to get all jobs for client 2. Job 6 is first one listed, a full backup 3. Plan is to restore each job, from earliest to latest 4. Select job 6 for restore 5. Bacula reads job 6, but reports "1 Job, 0 files inserted into the tree." Am I missing something? Let me make sure I understand the procedure for updating the catalog with the contents of the backup files. I need to make sure I am perfectly clear as the lack of sleep this is causing is making me pretty punchy :-) 1. Make backup of database. Since this is a sqlite DB, can I just make a copy of /var/lib/bacula/bacula.db? 2. Run bsan in read-only mode: bscan -c /etc/bacula/bacula-sd.conf -v -V PaulFull-1\|PaulFull-2\|PaulFull-3\|PaulDiff-3\|PaulDiff-4\|PaulDiff-1 /var/lib/bacula/backups/paul 3. If it looks OK, do it for real: bscan -s -m -c /etc/bacula/bacula-sd.conf -v -V PaulFull-1\|PaulFull-2\|PaulFull-3\|PaulDiff-3\|PaulDiff-4\|PaulDiff-1 /var/lib/bacula/backups/paul 4. Now that the catalog reflects what is really in the backup files, restore using desired job numbers Hopefully this is all there is too it. Thanks for the help! Paul ===============================Client Config(edited)==================== Client { Name = paul-fd [...] File Retention = 30 days # 30 days Job Retention = 6 months # six months AutoPrune = yes # Prune expired Jobs/Files } [...] Pool { Name = PaulFullPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 6 months Accept Any Volume = yes Maximum Volume Jobs = 1 Label Format = "PaulFull-${PaulFullCounter+}" Maximum Volumes = 6 } Pool { Name = PaulDiffPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 1 month Accept Any Volume = yes Maximum Volume Jobs = 1 Label Format = "PaulDiff-${PaulDiffCounter+}" Maximum Volumes = 6 } Pool { Name = PaulIncPool Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 1 week Accept Any Volume = yes Maximum Volume Jobs = 6 Label Format = "PaulInc-${PaulIncCounter+}" Maximum Volumes = 5 } ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users