Am 23.07.19 um 19:57 schrieb Martin Simmons: > bls -v -V T00109L4 /dev/nsa0
Hi Martin. To debug this I recreated the bacula postgres database, labeled the volume T00111L4 and did a full backup of the client ns.free.de which was successful. After this I tried a restore of /etc/resolv.conf which failed again with message "Restore OK -- warning file count mismatch" Then I did "bls -v -V T00111L4 /dev/nsa0" I attached the output below (bls output shortened to only resolv.conf) All the files of the full backup seem to be on this tape. Kai. 24-Jul 22:21 singsing-dir JobId 1: No prior Full backup Job record found. 24-Jul 22:21 singsing-dir JobId 1: No prior or suitable Full backup found in catalog. Doing FULL backup. 24-Jul 22:21 singsing-dir JobId 1: shell command: run BeforeJob "/sbin/ping -c 3 -q -o ns.free.de" 24-Jul 22:21 singsing-dir JobId 1: BeforeJob: PING ns.free.de (91.204.6.66): 56 data bytes 24-Jul 22:21 singsing-dir JobId 1: BeforeJob: 24-Jul 22:21 singsing-dir JobId 1: BeforeJob: --- ns.free.de ping statistics --- 24-Jul 22:21 singsing-dir JobId 1: BeforeJob: 1 packets transmitted, 1 packets received, 0.0% packet loss 24-Jul 22:21 singsing-dir JobId 1: BeforeJob: round-trip min/avg/max/stddev = 0.080/0.080/0.080/0.000 ms 24-Jul 22:21 singsing-dir JobId 1: Start Backup JobId 1, Job=ns.free.de.2019-07-24_22.21.27_03 24-Jul 22:21 singsing-dir JobId 1: Using Device "Drive-1" to write. 24-Jul 22:21 singsing-sd JobId 1: Wrote label to prelabeled Volume "T00111L4" on Tape device "Drive-1" (/dev/nsa0) 24-Jul 22:21 singsing-sd JobId 1: Spooling data ... 24-Jul 22:21 ns.free.de JobId 1: /rescue is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /lib is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /sbin is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /libexec is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /bin is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/bin is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/src is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/lib is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/libdata is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/libexec is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/lib32 is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/include is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/share is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /usr/sbin is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /boot is a different filesystem. Will not descend from / into it. 24-Jul 22:21 ns.free.de JobId 1: /etcupdate is a different filesystem. Will not descend from / into it. 24-Jul 22:22 ns.free.de JobId 1: /tmp is a different filesystem. Will not descend from / into it. 24-Jul 22:22 singsing-sd JobId 1: Committing spooled data to Volume "T00111L4". Despooling 952,402,054 bytes ... 24-Jul 22:22 singsing-sd JobId 1: Despooling elapsed time = 00:00:18, Transfer rate = 52.91 M Bytes/second 24-Jul 22:22 singsing-sd JobId 1: Elapsed time=00:00:52, Transfer rate=18.28 M Bytes/second 24-Jul 22:22 singsing-sd JobId 1: Sending spooled attrs to the Director. Despooling 5,330,336 bytes ... You have messages. *mes 24-Jul 22:22 singsing-dir JobId 1: Bacula singsing-dir 9.4.3 (03May19): Build OS: amd64-portbld-freebsd11.2 freebsd 11.2-RELEASE-p11 JobId: 1 Job: ns.free.de.2019-07-24_22.21.27_03 Backup Level: Full (upgraded from Incremental) Client: "ns.free.de" 7.4.7 (16Mar17) amd64-portbld-freebsd11.1,freebsd,11.1-RELEASE-p9 FileSet: "ns.free.de-fileset" 2019-07-24 22:21:27 Pool: "Default" (From Job resource) Catalog: "MyCatalog" (From Client resource) Storage: "LTO-3" (From Job resource) Scheduled time: 24-Jul-2019 22:21:23 Start time: 24-Jul-2019 22:21:29 End time: 24-Jul-2019 22:22:28 Elapsed time: 59 secs Priority: 10 FD Files Written: 29,555 SD Files Written: 29,555 FD Bytes Written: 947,165,376 (947.1 MB) SD Bytes Written: 950,899,742 (950.8 MB) Rate: 16053.7 KB/s Software Compression: None Comm Line Compression: None Snapshot/VSS: no Encryption: no Accurate: no Volume name(s): T00111L4 Volume Session Id: 1 Volume Session Time: 1563999492 Last Volume Bytes: 952,326,144 (952.3 MB) Non-fatal FD errors: 0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination: Backup OK 24-Jul 22:22 singsing-dir JobId 1: Begin pruning Jobs older than 3 months . 24-Jul 22:22 singsing-dir JobId 1: No Jobs found to prune. 24-Jul 22:22 singsing-dir JobId 1: Begin pruning Files. 24-Jul 22:22 singsing-dir JobId 1: No Files found to prune. 24-Jul 22:22 singsing-dir JobId 1: End auto prune. *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: Select full restore to a specified Job date 13: Cancel Select item: (1-13): 5 Defined Clients: 37: ns.free.de Select the Client (1-65): 37 Automatically selected FileSet: ns.free.de-fileset +-------+-------+----------+-------------+---------------------+------------+ | jobid | level | jobfiles | jobbytes | starttime | volumename | +-------+-------+----------+-------------+---------------------+------------+ | 1 | F | 29,555 | 947,165,376 | 2019-07-24 22:21:29 | T00111L4 | +-------+-------+----------+-------------+---------------------+------------+ You have selected the following JobId: 1 Building directory tree for JobId(s) 1 ... ++++++++++++++++++++++++++++++++++++++++++++++ 27,529 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 etc cwd is: /etc/ $ add resolv.con No files marked. $ add resolv.conf 1 file marked. $ done Bootstrap records written to /bacula/workdir/singsing-dir.restore.1.bsr The Job will require the following (*=>InChanger): Volume(s) Storage(s) SD Device(s) =========================================================================== *T00111L4 LTO-3 Drive-1 Volumes marked with "*" are in the Autochanger. 1 file selected to be restored. Run Restore job JobName: RestoreFiles Bootstrap: /bacula/workdir/singsing-dir.restore.1.bsr Where: /var/spool/bacula/restore Replace: Always FileSet: singsing.mgmt.free.de-fileset Backup Client: ns.free.de Restore Client: ns.free.de Storage: LTO-3 When: 2019-07-24 22:23:49 Catalog: MyCatalog Priority: 10 Plugin Options: *None* OK to run? (yes/mod/no): mod Parameters to modify: 1: Level 2: Storage 3: Job 4: FileSet 5: Restore Client 6: When 7: Priority 8: Bootstrap 9: Where 10: File Relocation 11: Replace 12: JobId 13: Plugin Options Select parameter to modify (1-13): 9 Please enter the full path prefix for restore (/ for none): /tmp Run Restore job JobName: RestoreFiles Bootstrap: /bacula/workdir/singsing-dir.restore.2.bsr Where: /tmp Replace: Always FileSet: singsing.mgmt.free.de-fileset Backup Client: ns.free.de Restore Client: ns.free.de Storage: LTO-3 When: 2019-07-24 22:25:38 Catalog: MyCatalog Priority: 10 Plugin Options: *None* OK to run? (yes/mod/no): yes Job queued. JobId=2 * You have messages. *mes 24-Jul 22:26 singsing-dir JobId 2: Start Restore Job RestoreFiles.2019-07-24_22.25.59_17 24-Jul 22:26 singsing-dir JobId 2: Restoring files from JobId(s) 1 24-Jul 22:26 singsing-dir JobId 2: Using Device "Drive-1" to read. * You have messages. *mes 24-Jul 22:26 singsing-sd JobId 2: Ready to read from volume "T00111L4" on Tape device "Drive-1" (/dev/nsa0). 24-Jul 22:26 singsing-sd JobId 2: Forward spacing Volume "T00111L4" to addr=0:1 24-Jul 22:26 singsing-sd JobId 2: Elapsed time=00:00:01, Transfer rate=0 Bytes/second 24-Jul 22:26 singsing-dir JobId 2: Bacula singsing-dir 9.4.3 (03May19): Build OS: amd64-portbld-freebsd11.2 freebsd 11.2-RELEASE-p11 JobId: 2 Job: RestoreFiles.2019-07-24_22.25.59_17 Restore Client: ns.free.de Where: /tmp Replace: Always Start time: 24-Jul-2019 22:26:01 End time: 24-Jul-2019 22:26:32 Elapsed time: 31 secs Files Expected: 1 Files Restored: 0 Bytes Restored: 0 (0 B) Rate: 0.0 KB/s FD Errors: 0 FD termination status: OK SD termination status: OK Termination: Restore OK -- warning file count mismatch 24-Jul 22:26 singsing-dir JobId 2: Begin pruning Jobs older than 3 months . 24-Jul 22:26 singsing-dir JobId 2: No Jobs found to prune. 24-Jul 22:26 singsing-dir JobId 2: Begin pruning Files. 24-Jul 22:26 singsing-dir JobId 2: No Files found to prune. 24-Jul 22:26 singsing-dir JobId 2: End auto prune. # bls -v -V T00111L4 /dev/nsa0 bls: butil.c:292-0 Using device: "/dev/nsa0" for reading. 24-Jul 22:34 bls JobId 0: No slot defined in catalog (slot=0) for Volume "T00111L4" on "Drive-1" (/dev/nsa0). 24-Jul 22:34 bls JobId 0: Cartridge change or "update slots" may be required. 24-Jul 22:34 bls JobId 0: Ready to read from volume "T00111L4" on Tape device "Drive-1" (/dev/nsa0). Volume Label: Adata : 0 Id : Bacula 1.0 immortal VerNo : 11 VolName : T00111L4 PrevVolName : VolFile : 0 LabelType : VOL_LABEL LabelSize : 195 PoolName : Default MediaType : LTO-3 PoolType : Backup HostName : singsing.mgmt.free.de Date label written: 24-Jul-2019 22:20 Begin Job Session Record: JobId : 1 VerNum : 11 PoolName : Default PoolType : Backup JobName : ns.free.de ClientName : ns.free.de Job (unique name) : ns.free.de.2019-07-24_22.21.27_03 FileSet : ns.free.de-fileset JobType : B JobLevel : F Date written : 24-Jul-2019 22:21 [DELETED bls: bls.c:417-0 FileIndex=474 VolSessionId=1 VolSessionTime=1563999492 Stream=1 DataLen=91 bls JobId 0: -rw-r--r-- 1 root wheel 73 2019-07-02 23:33:33 /etc/resolv.conf [DELETED] 24-Jul 22:34 bls JobId 0: End of Volume "T00111L4" at addr=0:907038720 on device "Drive-1" (/dev/nsa0). Bacula "End of Tape" label found. 29373 files found. _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users