[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bacula-devel] Trying out the VirtualFull feature.


Hello,

I've not posted anything to this list before, so I hope it is an appropriate
place for what I want to talk about. :)

I have been trying out the virtual backup feature from recent svn.
It seems to be almost working, but not quite. I wonder if I can get some
pointers, or some help?

I run a Full backup, change some files, and then run an Incremental.

I then run a VirtualFull, and it seems to run correctly.
But on closer inspection, it turns out that it has only copied the original
Full into a new backup and missed out the Incremental completely.

I thought that this might be because I have my Fulls and Incrementals in
different Pools, but I tried having them in the same Pool and I get the
same result.

Has anybody managed to run a VirtualFull that successfully combines multiple
backups?



Here are some parts from my bacula-dir.conf file, in case it is something
easy to spot:

Storage {
  Name = "0"
  Address = "10.253.0.121"
  SDPort = 9103
  Password = "mypassword"
  Device = 0.0
  Device = 0.1
  Device = 0.2
  Device = 0.3
  Device = 0.4
  Device = 0.5
  Device = 0.6
  Device = 0.7
  Device = 0.8
  Device = 0.9
  Device = 0.10
  Device = 0.11
  Device = 0.12
  Device = 0.13
  Device = 0.14
  Device = 0.15
  Device = 0.16
  Device = 0.17
  Device = 0.18
  Device = 0.19

  Media Type = File
  Maximum Concurrent Jobs = 20
}

Storage {
  Name = "0-vbackup"
  Address = "10.253.0.121"
  SDPort = 9103
  Password = "mypassword"
  Device = 0.0
  Device = 0.1
  Device = 0.2
  Device = 0.3
  Device = 0.4
  Device = 0.5
  Device = 0.6
  Device = 0.7
  Device = 0.8
  Device = 0.9
  Device = 0.10
  Device = 0.11
  Device = 0.12
  Device = 0.13
  Device = 0.14
  Device = 0.15
  Device = 0.16
  Device = 0.17
  Device = 0.18
  Device = 0.19

  Media Type = File
  Maximum Concurrent Jobs = 20
}


Pool {
  Name = "ABC:Full"
  Pool Type = Backup
  Recycle = yes           # automatically recycle Volumes
  AutoPrune = yes         # Prune expired volumes
  Volume Retention = 1 week
  Maximum Volume Jobs = 1
  Label Format = backup-
  Maximum Volumes = 0     # unlimited
  RecyclePool = Scratch
  Storage = "0-vbackup"
}

Pool {
  Name = "ABC:Incr"
  Pool Type = Backup
  Recycle = yes           # automatically recycle Volumes
  AutoPrune = yes         # Prune expired volumes
  Volume Retention = 1 week
  Maximum Volume Jobs = 1
  Label Format = backup-
  Maximum Volumes = 0     # unlimited
  RecyclePool = Scratch
  Next Pool = "ABC:Full"
}

Job {
  Name = "ABC"
  Type = Backup
  Schedule = "ABC"
  Messages = Standard
  Pool = "ABC:Incr"
  Priority = 10
  Client = "ABC-fd"
  FileSet = "ABC"
  Full Backup Pool = "ABC:Full"
  Incremental Backup Pool = "ABC:Incr"
  Max Start Delay = 1 hour
# Max Wait Time cancels current jobs! I think this is a bug.
#  Max Wait Time = 1 minute
  Maximum Concurrent Jobs = 1
  Storage = "0"
  Accurate = yes
  RunScript {
        RunsWhen = Before
        FailJobOnError = yes
        Command = "/usr/bin/clientrunscriptbackup before"
  }
  RunScript {
        RunsWhen = After
        RunsOnFailure = yes
        Command = "/usr/bin/clientrunscriptbackup after"
  }

}



And here is what bacula says when I run the VirtualFull.

backup-0009 is the volume that contains the original Full.
backup-0010 is the volume that contains the Incremental, but doesn't get
mentioned.
backup-0011 is the new volume that gets created.


Aug 13 14:26:37  bacula-dir: bacula.example.com-dir JobId 15: Storage "" not found, using Storage "0" from MediaType "File".
Aug 13 14:26:37  bacula-dir: bacula.example.com-dir JobId 15: Bootstrap records written to /var/lib/bacula/bacula.example.com-dir.restore.2.bsr
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: Start Vbackup JobId 15, Job=ABC.2008-08-13_14.26.07
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: Created new Volume "backup-0011" in catalog.
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: Using Device "0.1"
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: Ready to read from volume "backup-0009" on device "0.0" (/write/mnt/0/var/lib/bacula/volumes).
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: Warning: dev.c:534 dev.c:532 Could not open: /write/mnt/0/var/lib/bacula/volumes/backup-0011, ERR=No such file or directory
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: Warning: dev.c:534 dev.c:532 Could not open: /write/mnt/0/var/lib/bacula/volumes/backup-0011, ERR=No such file or directory
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: Labeled new Volume "backup-0011" on device "0.1" (/write/mnt/0/var/lib/bacula/volumes).
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: Wrote label to prelabeled Volume "backup-0011" on device "0.1" (/write/mnt/0/var/lib/bacula/volumes)
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: Max Volume jobs exceeded. Marking Volume "backup-0011" as Used.
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: Forward spacing Volume "backup-0009" to file:block 0:238.
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: End of file 0 on device "0.0" (/write/mnt/0/var/lib/bacula/volumes), Volume "backup-0009"
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: End of Volume at file 0 on device "0.0" (/write/mnt/0/var/lib/bacula/volumes), Volume "backup-0009"
Aug 13 14:26:39  bacula-dir: bacula.example.com-sd-91 JobId 15: End of all volumes.
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: Bacula bacula.example.com-dir 2.5.2 (22Jul08): 13-Aug-2008 14:26:39
Aug 13 14:26:39  bacula-dir:   Build OS:               i686-pc-linux-gnu unknown unknown
Aug 13 14:26:39  bacula-dir:   JobId:                  15
Aug 13 14:26:39  bacula-dir:   Job:                    ABC.200 8-08-13_14.26.07
Aug 13 14:26:39  bacula-dir:   Backup Level:           Full
Aug 13 14:26:39  bacula-dir:   Client:                 "ABC-fd" 2.5.2 (22Jul08) i686-pc-linux-gnu,unknown,unknown
Aug 13 14:26:39  bacula-dir:   FileSet:                "ABC" 2008-08-13 14:
09:57
Aug 13 14:26:39  bacula-dir:   Pool:                   "ABC:Incr" (From Job Pool's NextPool resource)
Aug 13 14:26:39  bacula-dir:   Catalog:                "MyCatalog" (From Client 
resource)
Aug 13 14:26:39  bacula-dir:   Storage:                "0-vbackup" (From Storage
 from Pool's NextPool resource)
Aug 13 14:26:39  bacula-dir:   Scheduled time:         13-Aug-2008 14:26:34
Aug 13 14:26:39  bacula-dir:   Start time:             13-Aug-2008 14:26:39
Aug 13 14:26:39  bacula-dir:   End time:               13-Aug-2008 14:26:39
Aug 13 14:26:39  bacula-dir:   Elapsed time:           0 secs
Aug 13 14:26:39  bacula-dir:   Priority:               10
Aug 13 14:26:39  bacula-dir:   SD Files Written:       751
Aug 13 14:26:39  bacula-dir:   SD Bytes Written:       856,100 (856.1 KB)
Aug 13 14:26:39  bacula-dir:   Rate:                   0.0 KB/s
Aug 13 14:26:39  bacula-dir:   Software Compression:   None
Aug 13 14:26:39  bacula-dir:   VSS:                    no
Aug 13 14:26:39  bacula-dir:   Encryption:             no
Aug 13 14:26:39  bacula-dir:   Accurate:               yes
Aug 13 14:26:39  bacula-dir:   Volume name(s):         backup-0011
Aug 13 14:26:39  bacula-dir:   Volume Session Id:      3
Aug 13 14:26:39  bacula-dir:   Volume Session Time:    1218633938
Aug 13 14:26:39  bacula-dir:   Last Volume Bytes:      871,002 (871.0 KB)
Aug 13 14:26:39  bacula-dir:   SD Errors:              0
Aug 13 14:26:39  bacula-dir:   SD termination status:  OK
Aug 13 14:26:39  bacula-dir:   Termination:            Backup OK
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: Begin pruning Jobs.
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: No Jobs found to prune.
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: Begin pruning Files.
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: No Files found to prune.
Aug 13 14:26:39  bacula-dir: bacula.example.com-dir JobId 15: End auto prune.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilotco.