>>>>> On Thu, 25 Jul 2019 19:45:01 +0200, Kai Gallasch said: > > Am 25.07.19 um 11:45 schrieb Martin Simmons: > >>>>>> On Wed, 24 Jul 2019 22:55:10 +0200, Kai Gallasch said: > >> > >> 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. > > > > That is very strange. > > > > Can you try it with a fileset containing just a single top level file (again > > with an empty database & tape)? > > > > e.g. > > > > File = /COPYRIGHT > > Hi. > > Backing up and restoring the single file /COPYRIGHT works! > The same result shows if I extend it to /COPYRIGHT and the /etc directory.
That's unfortunate, because it will be easier to debug if the backup is smaller. > As soon as I have File = / in the config, the restore fails with the > "file count mismatch" > > I also tried setting onefs=no but the error persists. Can you try using File = / and exclude some of the top level directories using Exclude { File = ... File = ... } to get a smaller backup that still fails? > And I also did a backup of a linux VM (hosted on FreeBSD) with bacula > and both backup and restore work without problems. So maybe this is > FreeBSD related. Does a restore of the FreeBSD backup onto the Linux client work? Likewise, what about a restore of the Linux backup onto the FreeBSD client? > Would it be beneficial for understandind the problem if I set up a dummy > FreeBSD Backupclient (minimal install, bacula backup-client) do a full > backup on a empty tape and failing restore ("file count mismatch) and > send the full output of the bls command over? I don't think the bls output will be useful on its own. You could try running the bacula-sd and bacula-fd with debug level 150 during the restore, which should make them print info about each file found on the tape and sent to the client. Also make a copy of the bsr file while the restore is running. Also, you mentioned originally that full restores also fail. Does that mean it restores 0 files or just misses some? __Martin _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users