Hello Tomasz,

Thanks for your response and for all details.
I prepared a patch to fix this problem. Could I ask you about trying
the patch from attachment? It is for Baculum 11.0.5 for a file located
in path:

/usr/share/baculum/htdocs/protected/API/Class/BVFS.php

Thanks in advance for your feedback.

Best regards,
Marcin Haba (gani)

On Thu, 24 Jun 2021 at 08:16, Tomasz Świderski <tom...@icar.com.pl> wrote:
>
> I debug file I see folders and files
>
> , File=/usr/share/baculum/htdocs/protected/API/Class/Bconsole.php,
> Line=237 (line 74,
> /usr/share/baculum/htdocs/protected/Common/Class/Logging.php)
> Jun 24 08:07:11 [Debug] [Execute] Command=sudo /usr/bin/bconsole -c
> "/opt/bacula/etc/bconsole.conf" -D k-bacula2-dir 2>&1 <<END_OF_DATA
> gui on
> .bvfs_lsdirs jobid="136,133,129,127" pathid="420" limit="2000"
> quit
> END_OF_DATA, Output=Array
> (
>      [0] => Connecting to Director k-bacula2:9101
>      [1] => 1000 OK: 10002 k-bacula2-dir Version: 11.0.5 (03 June 2021)
>      [2] => Enter a period to cancel a command.
>      [3] => gui on
>      [4] => .bvfs_lsdirs jobid="136,133,129,127" pathid="420" limit="2000"
>      [5] => Using Catalog "MyCatalog"
>      [6] => 420<>0<----->0<----->0<----->A A A A A A A A A A A A A A<--->.
>      [7] => 5<-->0<----->0<----->0<----->A A A A A A A A A A A A A A<--->..
>      [8] => 395<>0<----->8585<-->133<--->pAP8a i EA4 f A F9eMB -B BO EAA
> CK Bg0khL Bg0c8l Bg0c8l A gA C<>developer/
>      [9] => quit
> )
>
> If in the baculum in the "location" field I change to a subdirectory,
> then Baculum shows me only files and not folders. Files and directories
> are visible in the debug
>
> W dniu 2021-06-23 o 21:01, Marcin Haba pisze:
> > Hello Tomasz,
> >
> > In this case you can try to enable debug on the API side and look in
> > the debug file when you are using restore file browser. The most
> > useful is output from .bvfs_lsdirs and .bvfs_lsfiles bconsole
> > commands. Are you seeing there the missing in file browser dirs/files?
> >
> > The debug is possible to set on the API settings page. Debug file will
> > be available in path: /var/lib/baculum, if you installed Baculum using
> > packages from bacula.org.
> >
> > Best regards,
> > Marcin Haba (gani)
> >
> > On Wed, 23 Jun 2021 at 08:10, Tomasz Świderski <tom...@icar.com.pl> wrote:
> >> In bconsole I see in "list files jobid=xxx" and when restore.
> >>
> >> I have a similar situation in another company. Truenas is not there. In
> >> this company, I can see the entire structure except for the content of
> >> one directory where you can only see files and no directories. Restore
> >> sees them all
> >>
> >> W dniu 2021-06-23 o 07:11, Marcin Haba pisze:
> >>> Hello Tomasz,
> >>>
> >>> Could you check if file records exist for the job that you are trying
> >>> to restore? I mean for example this bconsole command:
> >>>
> >>> list files jobid=XXXX
> >>>
> >>> Did you try to restore using bconsole? If yes, did you see there full
> >>> directory structure?
> >>>
> >>> Best regards,
> >>> Marcin Haba (gani)
> >>>
> >>> On Tue, 22 Jun 2021 at 12:03, Tomasz Świderski <tom...@icar.com.pl> wrote:
> >>>> Bacula and Baculum version 11.0.5. I also tested on version 9.x
> >>>>
> >>>> My client bacula-fd install on TrueNas.
> >>>>
> >>>> When I make a backup and want to restore it, Baculum doesn't show me the
> >>>> directory structure. I can select everything and then it will restore
> >>>> everything to me, but I can't point to a specific file.
> >>>>
> >>>> FileSet {
> >>>>      Name = "ds-wenus"
> >>>>      Include {
> >>>>        Options {
> >>>>          signature = MD5
> >>>>          xattrsupport = yes
> >>>>          aclsupport = yes
> >>>>        }
> >>>>        File = "/mnt/developer"
> >>>>      }
> >>>>
> >>>> }
> >>>>
> >>>> Baculum show me only "/mnt"
> >>>>
> >>>> Please help
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Bacula-users mailing list
> >>>> Bacula-users@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
> >>>
> >
> >



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus
diff --git a/gui/baculum/protected/API/Class/BVFS.php b/gui/baculum/protected/API/Class/BVFS.php
index f991b8acbe..92122bdde5 100644
--- a/gui/baculum/protected/API/Class/BVFS.php
+++ b/gui/baculum/protected/API/Class/BVFS.php
@@ -30,9 +30,9 @@
  */
 class BVFS extends APIModule {
 
-	const DIR_PATTERN = '/^(?P<pathid>\d+)\t(?P<filenameid>\d+)\t(?P<fileid>\d+)\t(?P<jobid>\d+)\t(?P<lstat>[a-zA-z0-9\+\/\ ]+)\t(?P<name>(.*\/|\.{2}))$/';
+	const DIR_PATTERN = '/^(?P<pathid>\d+)\t(?P<filenameid>\d+)\t(?P<fileid>\d+)\t(?P<jobid>\d+)\t(?P<lstat>[a-zA-z0-9\+\-\/\ ]+)\t(?P<name>(.*\/|\.{2}))$/';
 	const FILE_PATTERN = '/^(?P<pathid>\d+)\t(?P<filenameid>\d+)\t(?P<fileid>\d+)\t(?P<jobid>\d+)\t(?P<lstat>[a-zA-z0-9\+\-\/\ ]+)\t(?P<name>[^\/]+)$/';
-	const VERSION_PATTERN = '/^(?P<pathid>\d+)\t(?P<filenameid>\d+)\t(?P<fileid>\d+)\t(?P<jobid>\d+)\t(?P<lstat>[a-zA-Z0-9\+\/\ ]+)\t(?P<md5>.+)\t(?P<volname>.+)\t(?P<inchanger>\d+)$/';
+	const VERSION_PATTERN = '/^(?P<pathid>\d+)\t(?P<filenameid>\d+)\t(?P<fileid>\d+)\t(?P<jobid>\d+)\t(?P<lstat>[a-zA-Z0-9\+\-\/\ ]+)\t(?P<md5>.+)\t(?P<volname>.+)\t(?P<inchanger>\d+)$/';
 
 	public function parseFileDirList($list) {
 		$elements = array();
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to