Bacula-users

Re: [Bacula-users] Can't restore backup

2011-01-24 07:25:42
Subject: Re: [Bacula-users] Can't restore backup
From: Randy Katz <rkatz AT simplicityhosting DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 24 Jan 2011 04:22:27 -0800
What do you get from ls -l /test ?

On 1/24/2011 3:42 AM, Rubik Andrey wrote:
Hi all!

I can't restore my backup.

Fragment of bacula-dir.conf:


JobDefs {
	Name = "TestJob"
	Type = Backup
	Level = Incremental
	FileSet = "Test Set"
	Schedule = "WeeklyCycle"
	Storage = bacula-sd
	Messages = Standard
	Pool = Default
	Priority = 10
	Write Bootstrap = "/var/lib/bacula/%c_%n.bsr"
}


Job {
	Name = "test backup my.host.com"
	JobDefs = "TestJob"
	Client = my.host.com 
}


Job {
	Name = "TestRestoreFiles"
	Type = Restore
	Client=my.host.com  
	FileSet="Test Set"                  
	Storage = bacula-sd                      
	Pool = Default
	Messages = Standard
	Where = /var/lib/bacula-restores
	Write Bootstrap = "/var/lib/bacula/%c_%n.bsr"
}


FileSet {
	Name = "Test Set"
	Include {
		Options {
			signature = MD5
		}
		File = /test
	}
}


Client {
	Name = my.host.com                
	Address = my.host.com
	FDPort = 9102
	Catalog = MyCatalog
	Password = "secret"
	File Retention = 30 days            
	Job Retention = 6 months            
	AutoPrune = yes                     
}


Storage {
	Name = bacula-sd
	Address = x.x.x.x
	SDPort = 9103
	Password = "secret"
	Device = FileStorage
	Media Type = File
}


Pool {
	Name = Default
	Pool Type = Backup
	Recycle = yes
	AutoPrune = yes                     
	Volume Retention = 365 days         
}


I get backup via bconsole:


  Build OS:               x86_64-pc-linux-gnu gentoo 
  JobId:                  152
  Job:
test_backup_a1.lcombat.ru.2011-01-24_14.21.54_03
  Backup Level:           Incremental, since=2011-01-24 13:37:18
  Client:                 "my.host.com" 5.0.3 (04Aug10)
x86_64-pc-linux-gnu,gentoo,
  FileSet:                "Test Set" 2011-01-21 16:23:06
  Pool:                   "Default" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "bacula-sd" (From Job resource)
  Scheduled time:         24-Янв-2011 14:21:50
  Start time:             24-Янв-2011 14:21:56
  End time:               24-Янв-2011 14:25:04
  Elapsed time:           3 mins 8 secs
  Priority:               10
  FD Files Written:       2
  SD Files Written:       2
  FD Bytes Written:       29 (29 B)
  SD Bytes Written:       192 (192 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  VSS:                    no
  Encryption:             no
  Accurate:               no
  Volume name(s):         bacula-label
  Volume Session Id:      96
  Volume Session Time:    1295602299
  Last Volume Bytes:      899 (899 B)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK


After that i tryed restore my bacup:

Run Restore job
JobName:         TestRestoreFiles
Bootstrap:       /var/lib/bacula/bacula-dir.restore.1.bsr
Where:           /var/lib/bacula-restores
Replace:         always
FileSet:         Test Set
Backup Client:   my.host.com
Restore Client:  my.host.com
Storage:         bacula-sd
When:            2011-01-24 14:28:15
Catalog:         MyCatalog
Priority:        10
Plugin Options:  *None*


  Build OS:               x86_64-pc-linux-gnu gentoo 
  JobId:                  154
  Job:                    TestRestoreFiles.2011-01-24_14.28.20_11
  Restore Client:         my.host.com
  Start time:             24-Янв-2011 14:28:22
  End time:               24-Янв-2011 14:28:23
  Files Expected:         4
  Files Restored:         4
  Bytes Restored:         37
  Rate:                   0.0 KB/s
  FD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Restore OK


But:

ls -l /var/lib/bacula-restores/
total 0


Bacula version 5.0.3.

Any solutions?


------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ Bacula-users mailing list Bacula-users AT lists.sourceforge DOT net https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users