Bacula-users

Re: [Bacula-users] Incomplete backup

2009-02-06 17:07:53
Subject: Re: [Bacula-users] Incomplete backup
From: Victor Sterpu <victor AT casnt DOT ro>
To: Bacula-users AT lists.sourceforge DOT net
Date: Sat, 07 Feb 2009 00:08:07 +0200
I run a incremental job, but when I try to restore I should see all the files.
I did this at the bacula console:
> restore
>     5: Select the most recent backup for a client
Automatically selected FileSet: mail
+-------+-------+----------+-------------+---------------------+-------------+
| jobid | level | jobfiles | jobbytes    | starttime           | volumename  |
+-------+-------+----------+-------------+---------------------+-------------+
|    54 | F     |   29,052 | 366,387,257 | 2009-02-06 02:18:08 | StorageMail |
|    55 | I     |      327 |  69,960,993 | 2009-02-06 07:23:52 | StorageMail |
|    60 | I     |      944 | 369,334,548 | 2009-02-06 21:48:43 | StorageMail |
|    63 | I     |       86 | 123,432,845 | 2009-02-06 22:07:21 | StorageMail |
|    64 | I     |      198 | 124,352,818 | 2009-02-06 22:32:50 | StorageMail |
|    66 | I     |      222 |  99,816,375 | 2009-02-06 23:16:33 | StorageMail |
+-------+-------+----------+-------------+---------------------+-------------+
You have selected the following JobIds: 54,55,60,63,64,66

Building directory tree for JobId 54 ...  +++++++++++++++++++++++++++++++++++++++++++++++++
Building directory tree for JobId 55 ...
Building directory tree for JobId 60 ...  +
Building directory tree for JobId 63 ...
Building directory tree for JobId 64 ...
Building directory tree for JobId 66 ...
6 Jobs, 29,676 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: /
$ cd /var/zimbra/store/0/10/msg/0/
cwd is: /var/zimbra/store/0/10/msg/0/
$ ls
3029-8857.msg
3080-9300.msg
3081-9301.msg
3083-9326.msg

ls -al /var/zimbra/store/0/10/msg/0/ | wc returns "2043   16338  136026" and all of them are files(mail messages).



The final job report is like this:
06-Feb 23:16 192.168.0.191-dir JobId 66: Start Backup JobId 66, Job=Backup_Mail.2009-02-06_23.16.30.04
06-Feb 23:16 192.168.0.191-dir JobId 66: Using Device "FSZimbra"
06-Feb 23:16 192.168.0.191-sd JobId 66: Volume "StorageMail" previously written, moving to end of data.
06-Feb 23:16 192.168.0.191-sd JobId 66: Ready to append to end of Volume "StorageMail" size=1060249931
06-Feb 23:17 192.168.0.191-sd JobId 66: Job write elapsed time = 00:00:42, Transfer rate = 2.377 M bytes/second
06-Feb 23:17 192.168.0.191-dir JobId 66: Bacula 192.168.0.191-dir 2.4.4 (28Dec08): 06-Feb-2009 23:17:16
  Build OS:               i686-pc-linux-gnu debian 4.0
  JobId:                  66
  Job:                    Backup_Mail.2009-02-06_23.16.30.04
  Backup Level:           Incremental, since=2009-02-06 22:32:50
  Client:                 "mail-fd" 2.4.4 (28Dec08) i686-pc-linux-gnu,debian,4.0
  FileSet:                "mail" 2009-02-05 23:22:00
  Pool:                   "PMail" (From Job resource)
  Storage:                "SMail" (From Pool resource)
  Scheduled time:         06-Feb-2009 23:16:29
  Start time:             06-Feb-2009 23:16:33
  End time:               06-Feb-2009 23:17:16
  Elapsed time:           43 secs
  Priority:               10
  FD Files Written:       222
  SD Files Written:       222
  FD Bytes Written:       99,816,375 (99.81 MB)
  SD Bytes Written:       99,847,184 (99.84 MB)
  Rate:                   2321.3 KB/s
  Software Compression:   67.5 %
  VSS:                    no
  Storage Encryption:     no
  Volume name(s):         StorageMail
  Volume Session Id:      10
  Volume Session Time:    1233948659
  Last Volume Bytes:      1,160,216,405 (1.160 GB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

06-Feb 23:17 192.168.0.191-dir JobId 66: Begin pruning Jobs.
06-Feb 23:17 192.168.0.191-dir JobId 66: No Jobs found to prune.
06-Feb 23:17 192.168.0.191-dir JobId 66: Begin pruning Files.
06-Feb 23:17 192.168.0.191-dir JobId 66: No Files found to prune.


06-Feb 23:17 192.168.0.191-dir JobId 66: End auto prune.

Ralf Gross wrote:
Victor Sterpu schrieb:
  
Backing up a mail server I realized that the backup is incomplete.
I use bacula 2.4.4.
Bacula-fd runs as root.
My FileSet is like this:
FileSet {
    Name = "mail"
    Include {
      Options {
          signature = MD5
          compression = GZIP
      }
      File = "/var/zimbra"
    }
}

Before backup I checked the directory /var/zimbra/store/0/10/msg/0/ and 
it contained 2043 files.
After the backup, in the bacula console I see that the backup contains 
only 4 files:
cwd is: /var/zimbra/store/0/10/msg/0/
$ ls
3029-8857.msg
3080-9300.msg
3081-9301.msg
3083-9326.msg

What can be the reason for this?
    
You are running a full backup? Not an incremental?

Show us the job output and final job report.

Ralf

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
  

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users