On 3 Sep 2005 at 14:08, Jan Johansson wrote: > I am trying to restore my wrecked MX, but when i try to restore the files to > the new hardware, i get a message to the effect that bacula tries to find the > files in the wrong location? Please see the below ouput. Config files at the > bottom. > > I just want to dump all data from "statler-fd" to "seed-fd"? > > > The defined Client resources are: > 1: cookiemonster-fd > 2: scooter-fd > 3: mythbox-fd > 4: statler-fd > 5: seed-fd > Select Client (File daemon) resource (1-5): 5 > Connecting to Client seed-fd at 192.168.0.91:9102 > cookiemonster-fd Version: 1.36.3 (22 April 2005) i386-pc-linux-gnu debian 3.1
Your FD is version 1.36.3 I have no idea if this will cause a problem. > Daemon started 03-Sep-05 14:07, 0 Jobs run since started. > No Terminated Jobs. > Running Jobs: > Director connected at: 03-Sep-05 14:08 > No Jobs running. > ==== > *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: Cancel > Select item: (1-9): 5 > Defined Clients: > 1: cookiemonster-fd > 2: scooter-fd > 3: statler-fd > 4: mythbox-fd > 5: seed-fd > Select the Client (1-5): 3 > The defined FileSet resources are: > 1: Full Set > 2: StatlerFull Set > Select FileSet resource (1-2): 1 > +-------+-------+----------+---------------------+--------------+-----------+--------------+----------------+ > | JobId | Level | JobFiles | StartTime | VolumeName | StartFile | > VolSessionId | VolSessionTime | > +-------+-------+----------+---------------------+--------------+-----------+--------------+----------------+ > | 95 | F | 42,382 | 2005-08-28 05:29:02 | statler-0004 | 0 | > 69 | 1,124,220,549 | > | 99 | I | 114 | 2005-08-29 01:08:46 | statler-0005 | 0 | > 73 | 1,124,220,549 | > | 103 | I | 329 | 2005-08-30 01:09:42 | statler-0006 | 0 | > 77 | 1,124,220,549 | > | 107 | I | 531 | 2005-08-31 01:13:13 | statler-0007 | 0 | > 81 | 1,124,220,549 | > | 115 | I | 290 | 2005-09-01 01:07:17 | statler-0008 | 0 | > 7 | 1,125,521,160 | > +-------+-------+----------+---------------------+--------------+-----------+--------------+----------------+ > You have selected the following JobIds: 95,99,103,107,115 > Building directory tree for JobId 95 ... > +++++++++++++++++++++++++++++++++++++++++++++++++ > Building directory tree for JobId 99 ... > Building directory tree for JobId 103 ... > Building directory tree for JobId 107 ... > Building directory tree for JobId 115 ... > 5 Jobs, 42,190 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 * > 42,873 files marked. > $ done > Bootstrap records written to /var/lib/bacula/restore.bsr > The job will require the following Volumes: > statler-0004 > statler-0007 > statler-0008 > statler-0005 > statler-0006 > > 42873 files selected to be restored. > Run Restore job > JobName: RestoreFiles > Bootstrap: /var/lib/bacula/restore.bsr > Where: /tmp/bacula-restores > Replace: always > FileSet: Full Set > Client: statler-fd > Storage: File > When: 2005-09-03 13:59:59 > Catalog: MyCatalog > Priority: 10 > OK to run? (yes/mod/no): mod > Parameters to modify: > 1: Level > 2: Storage > 3: Job > 4: FileSet > 5: Client > 6: When > 7: Priority > 8: Bootstrap > 9: Where > 10: Replace > 11: JobId > Select parameter to modify (1-11): 5 > The defined Client resources are: > 1: cookiemonster-fd > 2: scooter-fd > 3: mythbox-fd > 4: statler-fd > 5: seed-fd > Select Client (File daemon) resource (1-5): 5 > Run Restore job > JobName: RestoreFiles > Bootstrap: /var/lib/bacula/restore.bsr > Where: /tmp/bacula-restores > Replace: always > FileSet: Full Set > Client: seed-fd > Storage: File > When: 2005-09-03 13:59:59 > Catalog: MyCatalog > Priority: 10 > OK to run? (yes/mod/no): yes > Job started. JobId=134 > *messages > 03-Sep 14:00 cookiemonster-dir: Start Restore Job > RestoreFiles.2005-09-03_14.00.12 > 03-Sep 16:11 cookiemonster-fd: RestoreFiles.2005-09-03_14.00.12 Fatal error: > job.c:1665 Bad response to Read Data command. Wanted 3000 OK data > , got > 03-Sep 14:00 cookiemonster-sd: RestoreFiles.2005-09-03_14.00.12 Fatal error: > Open device /mnt/silo-4/bacula-backups/cookiemonster volume statler-0004 > failed, ERR=dev.c:340 Could not open: > /mnt/silo-4/bacula-backups/cookiemonster/statler-0004, ERR=No such file or > directory > 03-Sep 14:00 cookiemonster-dir: RestoreFiles.2005-09-03_14.00.12 Error: > Bacula 1.36.2 (28Feb05): 03-Sep-2005 14:00:22 Your director is 1.36.2 > JobId: 134 > Job: RestoreFiles.2005-09-03_14.00.12 > Client: seed-fd > Start time: 03-Sep-2005 14:00:14 > End time: 03-Sep-2005 14:00:22 > Files Expected: 42,873 > Files Restored: 0 > Bytes Restored: 0 > Rate: 0.0 KB/s > FD Errors: 0 > FD termination status: Error > SD termination status: Error > Termination: *** Restore Error *** > *quit > cookiemonster:~# ls -la /mnt/silo-4/bacula-backups/statler/statler-00 The above directory is not that mentioned above in the error message: Could not open: /mnt/silo-4/bacula-backups/cookiemonster/statler-0004 > statler-0001 statler-0003 statler-0005 statler-0007 statler-0009 > statler-0002 statler-0004 statler-0006 statler-0008 statler-0010 > cookiemonster:~# ls -la /mnt/silo-4/bacula-backups/statler/statler-00 > ls: /mnt/silo-4/bacula-backups/statler/statler-00: No such file or directory > cookiemonster:~# ls -la /mnt/silo-4/bacula-backups/statler/statler-00* > -rw-r----- 1 bacula tape 63420509 Aug 25 01:11 > /mnt/silo-4/bacula-backups/statler/statler-0001 > -rw-r----- 1 bacula tape 698418302 Aug 26 07:25 > /mnt/silo-4/bacula-backups/statler/statler-0002 > -rw-r----- 1 bacula tape 67336597 Aug 27 01:17 > /mnt/silo-4/bacula-backups/statler/statler-0003 > -rw-r----- 1 bacula tape 512401089 Aug 28 05:53 > /mnt/silo-4/bacula-backups/statler/statler-0004 > -rw-r----- 1 bacula tape 6690660 Aug 29 01:10 > /mnt/silo-4/bacula-backups/statler/statler-0005 > -rw-r----- 1 bacula tape 74864955 Aug 30 01:13 > /mnt/silo-4/bacula-backups/statler/statler-0006 > -rw-r----- 1 bacula tape 58601645 Aug 31 01:17 > /mnt/silo-4/bacula-backups/statler/statler-0007 > -rw-r----- 1 bacula tape 61976679 Sep 1 01:11 > /mnt/silo-4/bacula-backups/statler/statler-0008 > -rw-r----- 1 bacula tape 2853665631 Sep 2 23:49 > /mnt/silo-4/bacula-backups/statler/statler-0009 > -rw-r----- 1 bacula tape 112918861 Aug 24 01:15 > /mnt/silo-4/bacula-backups/statler/statler-0010 > cookiemonster:~# > > cookiemonster:~# cat /etc/bacula/bacula-dir.conf | grep -v ^# > Director { # define myself > Name = cookiemonster-dir > DIRport = 9101 # where we listen for UA connections > QueryFile = "/etc/bacula/scripts/query.sql" > WorkingDirectory = "/var/lib/bacula" > PidDirectory = "/var/run/bacula" > Maximum Concurrent Jobs = 1 > Password = "" # Console password > Messages = Daemon > } > JobDefs { > Name = "DefaultJob" > Type = Backup > Level = Incremental > Client = cookiemonster-fd > FileSet = "Full Set" > Schedule = "WeeklySchedule" > Storage = File > Messages = Standard > Pool = Default > Priority = 10 > } > > Job { > Name = "cookiemonster-fd" > JobDefs = "DefaultJob" > FileSet = "Core Set" > Write Bootstrap = "/var/lib/bacula/cookiemonster.bsr" > Pool = cookiemonster-pool > Storage = File-cookiemonster > } > Job { > Name = "BackupCatalog" > JobDefs = "DefaultJob" > Level = Full > FileSet="Catalog" > Schedule = "WeeklyCycleAfterBackup" > # This creates an ASCII copy of the catalog > RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup -ubacula -pDELETED" > # This deletes the copy of the catalog > RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup" > Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr" > Priority = 11 # run after main backup > Storage = File-cookiemonster > } > Job { > Name = "RestoreFiles" > Type = Restore > Client=cookiemonster-fd > FileSet="Full Set" > Storage = File > Pool = Default > Messages = Standard > Where = /tmp/bacula-restores > } > > FileSet { > Name = "StatlerFull Set" > Include { > Options { > signature = MD5 > Exclude = yes > wildfile = *.MYI > wildfile = *.MYD > wildfile = *.avc.old > regexfile = "/var/log/.*\.[0-9]\.gz" > } > File = / > File = /boot > File = /home > } > Exclude { > File = /proc > File = /tmp > File = /.journal > File = /.fsck > File = /backup > File = /var/log > } > } > > FileSet { > Name = "MythCore Set" > Include { > Options { > signature = MD5 > Exclude = yes > wildfile = *.MYI > wildfile = *.MYD > wildfile = *.avc.old > regexfile = "/var/log/.*\.[0-9]\.gz" > } > File = / > } > Exclude { > File = /proc > File = /tmp > File = /.journal > File = /.fsck > File = /backup > File = /var/log > File = /video > File = /mnt > } > } > > FileSet { > Name = "Core Set" > Include { > Options { > signature = MD5 > compression=GZIP > Exclude = yes > wildfile = *.MYI > wildfile = *.MYD > wildfile = *.avc.old > regexfile = "/var/log/.*\.[0-9]\.gz" > } > File = /etc > File = /home > File = /root > File = /var > File = /usr/local > } > Exclude { > File = /proc > File = /tmp > File = /.journal > File = /.fsck > File = /backup > File = /var/log > } > } > > FileSet { > Name = "Full Set" > Include { > Options { > signature = MD5 > Exclude = yes > wildfile = *.MYI > wildfile = *.MYD > wildfile = *.avc.old > regexfile = "/var/log/.*\.[0-9]\.gz" > } > File = / > } > Exclude { > File = /proc > File = /tmp > File = /.journal > File = /.fsck > File = /backup > File = /var/log > } > } > FileSet { > Name = Include_example > Include { > Options { > wilddir = /proc > wilddir = /tmp > wildfile = \.journal > wildfile = \.autofsck > exclude = yes > } > File = / > File = /boot > File = /home > File = /rescue > File = /usr > } > } > Schedule { > Name = "WeeklyCycle" > Run = Full 1st sun at 1:05 > Run = Differential 2nd-5th sun at 1:05 > Run = Incremental mon-sat at 1:05 > } > Schedule { > Name = "WeeklySchedule" > Run = Level=Full fri at 1:01 > Run = Level=Incremental sat-thu at 1:01 > } > > Schedule { > Name = "WeeklyCycleAfterBackup" > Run = Full sun-sat at 1:10 > } > FileSet { > Name = "Catalog" > Include { > Options { > signature = MD5 > } > File = /var/lib/bacula/bacula.sql > } > } > Client { > Name = cookiemonster-fd > Address = cookiemonster > FDPort = 9102 > Catalog = MyCatalog > Password = "" # password for FileDaemon > File Retention = 30 days # 30 days > Job Retention = 6 months # six months > AutoPrune = yes # Prune expired Jobs/Files > } > Job { > Name = "scooter" > Type = Backup > Client = scooter-fd > FileSet = "Full Set" > Schedule = "WeeklySchedule" > Storage = File-scooter > Messages = Standard > Pool = scooter-pool > Write Bootstrap = "/var/lib/bacula/scooter.bsr" > } > Client { > Name = scooter-fd > Address = 10.4.1.1 > FDPort = 9102 > Catalog = MyCatalog > Password = "" # password for > File Retention = 30d # 30 days > Job Retention = 180d # six months > AutoPrune = yes # Prune expired Jobs/Files > } > Job { > Name = "mythbox" > Type = Backup > Client = mythbox-fd > FileSet = "MythCore Set" > Schedule = "WeeklySchedule" > Storage = File-mythbox > Messages = Standard > Pool = mythbox-pool > Write Bootstrap = "/var/lib/bacula/mythbox.bsr" > } > Client { > Name = mythbox-fd > Address = 192.168.0.250 > FDPort = 9102 > Catalog = MyCatalog > Password = "" # password for > File Retention = 30d # 30 days > Job Retention = 60d # six months > AutoPrune = yes # Prune expired Jobs/Files > } > > Job { > Name = "statler" > Type = Backup > Client = statler-fd > FileSet = "StatlerFull Set" > Schedule = "WeeklySchedule" > Storage = File-statler > Messages = Standard > Pool = statler-pool > Write Bootstrap = "/var/lib/bacula/statler.bsr" > } > Client { > Name = statler-fd > Address = 10.4.0.1 > FDPort = 9102 > Catalog = MyCatalog > Password = "" # password for > File Retention = 30d # 30 days > Job Retention = 180d # six months > AutoPrune = yes # Prune expired Jobs/Files > } > > Storage { > Name = File > Address = cookiemonster # N.B. Use a fully qualified name > here > SDPort = 9103 > Password = "" > Device = cookiemonster-device > Media Type = File > } > Storage { > Name = File-cookiemonster > Address = cookiemonster > Password = "" > Device = cookiemonster-device > Media Type = File > } > Storage { > Name = File-scooter > Address = cookiemonster > Password = "" > Device = scooter-device > Media Type = File > } > Storage { > Name = File-mythbox > Address = cookiemonster > Password = "" > Device = mythbox-device > Media Type = File > } > Storage { > Name = File-statler > Address = cookiemonster > Password = "" > Device = statler-device > Media Type = File > } > > > Catalog { > Name = MyCatalog > dbname = bacula; user = bacula; password = "baculamupp" > } > Messages { > Name = Standard > mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s > \"Bacula: %t %e of %c %l\" %r" > operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" > -s \"Bacula: Intervention needed for %j\" %r" > mail = [EMAIL PROTECTED] = all, !skipped > operator = [EMAIL PROTECTED] = mount > console = all, !skipped, !saved > append = "/var/lib/bacula/log" = all, !skipped > } > > Messages { > Name = Daemon > mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s > \"Bacula daemon message\" %r" > mail = [EMAIL PROTECTED] = all, !skipped > console = all, !skipped, !saved > append = "/var/lib/bacula/log" = all, !skipped > } > > > Pool { > Name = Default > Pool Type = Backup > Recycle = yes # Bacula can automatically recycle > Volumes > AutoPrune = yes # Prune expired volumes > Volume Retention = 30 days # one month > Accept Any Volume = yes # write on any volume in the pool > LabelFormat = "MuppVol" > VolumeUseDuration = 23h > } > Pool { > Name = scooter-pool > Use Volume Once = yes > Pool Type = Backup > LabelFormat = "scooter-" > AutoPrune = yes > VolumeRetention = 6d > Maximum Volumes = 30 > Recycle = yes > VolumeUseDuration = 23h > } > Pool { > Name = mythbox-pool > Use Volume Once = yes > Pool Type = Backup > LabelFormat = "mythbox-" > AutoPrune = yes > VolumeRetention = 6d > Maximum Volumes = 30 > Recycle = yes > VolumeUseDuration = 23h > } > > Pool { > Name = statler-pool > Use Volume Once = yes > Pool Type = Backup > LabelFormat = "statler-" > AutoPrune = yes > VolumeRetention = 6d > Maximum Volumes = 30 > Recycle = yes > VolumeUseDuration = 23h > } > Pool { > Name = cookiemonster-pool > Use Volume Once = yes > Pool Type = Backup > LabelFormat = "cookiemonster-" > AutoPrune = yes > VolumeRetention = 6d > Maximum Volumes = 30 > Recycle = yes > VolumeUseDuration = 23h > } > > Pool { > Name = Full_Backups_Mupp > Pool Type = Backup > Recycle = yes # Bacula can automatically recycle > Volumes > AutoPrune = yes # Prune expired volumes > Volume Retention = 30 days # one month > Accept Any Volume = yes # write on any volume in the pool > } > Pool { > Name = Incremental_Backups_Mupp > Pool Type = Backup > Recycle = yes # Bacula can automatically recycle > Volumes > AutoPrune = yes # Prune expired volumes > Volume Retention = 7 days # one month > Accept Any Volume = yes # write on any volume in the pool > } > > Console { > Name = cookiemonster-mon > Password = "" > CommandACL = status, .status > } > Client { > Name = seed-fd > Address = 192.168.0.91 > FDPort = 9102 > Catalog = MyCatalog > Password = "" # password for > File Retention = 30d # 30 days > Job Retention = 180d # six months > AutoPrune = yes # Prune expired Jobs/Files > } > cookiemonster:~# > > > -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users