Bacula-users

Re: [Bacula-users] Completely restarting bacula's db and records

2009-03-31 12:29:49
Subject: Re: [Bacula-users] Completely restarting bacula's db and records
From: "David Murphy" <david AT icewatermedia DOT com>
To: <Bacula-users AT lists.sourceforge DOT net>
Date: Tue, 31 Mar 2009 11:25:05 -0500
This may help.
I assumed the  issue was from the  old jobs still being seen ( and I have
removed that state files from /var/lib/bacula ( which I use rather than
/var/bacula  as its ubunutu)

2)      When  I try to run a restore:
a.      I see ?Storage "" not found, using Storage "File" from MediaType
"File".?
b.      What is causing this?
                                                #-- deploy --#
                                                Job {
                                                                Name =
deploy
                                                                Type =
Backup
                                                                Client =
deploy
                                                                FileSet =
"DefaultLinux"
                                                                Storage =
deploy
                                                                Pool =
deploy
                                                                Messages =
Standard
                                                                JobDefs =
"DefaultJob"
                                                                Write
Bootstrap = "/var/lib/bacula/deploy.bsr"
                                                }
                                                #-- deploy --#
                                                Job {
                                                                Name =
"deploy_Restore"
                                                                Type=
Restore
                                                                Client =
deploy
                                                                FileSet =
"DefaultLinux"
                                                                Storage =
deploy
                                                                Pool =
deploy
                                                                Messages =
Standard
                                                                Where =
/.restore
                                                }

Run Backup job
JobName:  deploy
Level:    Incremental
Client:   deploy
FileSet:  DefaultLinux
Pool:     deploy (From Job resource)
Storage:  deploy (From Job resource)
When:     2009-03-30 10:37:18
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=1


*status client=deploy
Connecting to Client deploy at deploy:9102

BACKUP Version: 2.2.8 (26 January 2008)  i486-pc-linux-gnu debian lenny/sid
Daemon started 15-Mar-09 17:36, 17 Jobs run since started.
 Heap: heap=978,944 smbytes=484,915 max_bytes=4,565,120 bufs=134
max_bufs=22,027
 Sizeof: boffset_t=8 size_t=4 debug=0 trace=0

Running Jobs:
JobId 1 Job deploy.2009-03-30_10.37.03 is running.
    Backup Job started: 30-Mar-09 10:38
    Files=8,395 Bytes=1,124,849,254 Bytes/sec=21,223,570 Errors=0
    Files Examined=8,395
    Processing file: /root/oops/Import.Subscribes.Jan03-Jan30_2009
    SDReadSeqNo=5 fd=5
Director connected at: 30-Mar-09 10:38
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name 
======================================================================
   101  Incr      6,479    304.0 M  OK       24-Mar-09 01:11 deploy
   116  Incr     22,830    325.9 M  OK       25-Mar-09 01:21 deploy
   131  Incr     18,215    269.9 M  OK       26-Mar-09 01:13 deploy
   146  Incr      6,477    197.9 M  OK       27-Mar-09 01:19 deploy
   162            8,153    221.5 M  Error    27-Mar-09 10:17 deploy_Restore
   163                2         0   OK       27-Mar-09 10:20 deploy_Restore
   164            4,585    1.056 G  OK       27-Mar-09 10:23 deploy_Restore
   168  Incr        851    161.8 M  OK       28-Mar-09 01:07 deploy
   183  Diff     24,158    276.5 M  OK       29-Mar-09 01:23 deploy
   198  Incr     11,584    194.1 M  OK       30-Mar-09 01:07 deploy


*restore

First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.

To select the JobIds, you have the following choices:
     1: List last 20 Jobs run
     2: List Jobs where a given File is saved
     3: Enter list of comma separated JobIds to select
     4: Enter SQL list command
     5: Select the most recent backup for a client
     6: Select backup for a client before a specified time
     7: Enter a list of files to restore
     8: Enter a list of files to restore before a specified time
     9: Find the JobIds of the most recent backup for a client
    10: Find the JobIds for a backup for a client before a specified time
    11: Enter a list of directories to restore for found JobIds
    12: Cancel
Select item:  (1-12): 5
Automatically selected Client: deploy
Automatically selected FileSet: DefaultLinux
+-------+-------+----------+---------------+---------------------+----------
---------+
| JobId | Level | JobFiles | JobBytes      | StartTime           |
VolumeName        |
+-------+-------+----------+---------------+---------------------+----------
---------+
|     1 | F     |   53,515 | 1,462,533,816 | 2009-03-30 10:37:26 |
deploy-2009-03-30 |
+-------+-------+----------+---------------+---------------------+----------
---------+
You have selected the following JobId: 1

Building directory tree for JobId 1 ...
++++++++++++++++++++++++++++++++++++++++++
1 Job, 45,274 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /
$ mark *
53,515 files marked.
$ done
Storage "" not found, using Storage "File" from MediaType "File".
Bootstrap records written to /var/lib/bacula/BACKUP-dir.restore.1.bsr

The job will require the following
   Volume(s)                 Storage(s)                SD Device(s)
===========================================================================
   
   deploy-2009-03-30



53,515 files selected to be restored.

The defined Restore Job resources are:
     1: Backup_Restore
     2: DB2_Restore
     3: DB3_Restore
     4: dev1_Restore
     5: deploy_Restore
     6: sauron_Restore
     7: dns1_Restore
     8: mail_Restore
     9: rgapp1_Restore
    10: web1_Restore
    11: web2_Restore
    12: web3_Restore
    13: loba1_Restore
    14: app1_Restore
    15: lc_cms_Restore
Select Restore Job (1-15): 5
Run Restore job
JobName:         deploy_Restore
Bootstrap:       /var/lib/bacula/BACKUP-dir.restore.1.bsr
Where:           /.restore
Replace:         always
FileSet:         DefaultLinux
Backup Client:   deploy
Restore Client:  deploy
Storage:         File
When:            2009-03-30 10:45:40
Catalog:         MyCatalog
Priority:        10
OK to run? (yes/mod/no):




-----Original Message-----
From: John Drescher [mailto:drescherjm AT gmail DOT com] 
Sent: Tuesday, March 31, 2009 11:04 AM
To: david AT icewatermedia DOT com
Cc: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] Completely restarting bacula's db and records

On Tue, Mar 31, 2009 at 11:43 AM, Ralf Gross <Ralf-Lists AT ralfgross DOT de>
wrote:
> David Murphy schrieb:
>> I want to wipe all data from Bacula, I purged and recreated the db and
>> removed all  the  files in /var/lib/bacula and even emptied its log file
but
>> status client=xxxx  still show  all my old jobs, how do I remove them I
>> think they are causing issues with trying to restore the new backups
since
>> that purge.
>
>
http://wiki.bacula.org/doku.php?id=faq#why_do_i_still_see_old_jobs_in_status
_messages_after_i_dropped_the_catalog
>
BTW, I see no reason at all how these could cause you any problem at
all other than confusion. The state files are information only.

John


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users