Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2023 19:08:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 275017] sysutils/backuppc4 Problem backing up multiple SMB share (broken config from web interface)
Message-ID:  <bug-275017-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275017

            Bug ID: 275017
           Summary: sysutils/backuppc4 Problem backing up multiple SMB
                    share (broken config from web interface)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: olivierw1+bugzilla-freebsd@hotmail.com
                CC: moiseev@mezonplus.ru
             Flags: maintainer-feedback?(moiseev@mezonplus.ru)
                CC: moiseev@mezonplus.ru

Hello,

I'm using BackupPC 4.4.0 on FreeBSD 13.2 and I need to backup a new Windows
computer which has 2 SMB shares. But there's a bug in the current version of
BackupPC.

The problem is, when setting up "BackupFilesOnly" and "SmbShareName" through
backuppc's web interface, it doesn't save the configuration correctly, it d=
oes
save:

$Conf{BackupFilesOnly} =3D (
  'Share1$' =3D> [
    '*.a'
  ],
  'Share2$' =3D> [
    '*.b'
  ]
);
$Conf{SmbShareName} =3D (
  'Share1$',
  'Share2$'
);


While the correct configuration should be:
$Conf{BackupFilesOnly} =3D {
  'Share1$' =3D> [
    '*.a'
  ],
  'Share2$' =3D> [
    '*.b'
  ]
};
$Conf{SmbShareName} =3D [
  'Share1$',
  'Share2$'
];


Notice the differences how the array are saved: "(", ")" instead of "{", "}"
and "[", "]"


Fortunately, there is a patch available, but there are no new releases since
v4.4.0 from 2020.
The patch is available here:
https://github.com/backuppc/backuppc/commit/2c9270b9b849b2c86ae6301dd722c97=
757bc9256
(add ".patch" or ".diff" to the end of this URL if needed)


There are bug reports here: https://github.com/backuppc/backuppc/issues/466=
 and
here: https://github.com/backuppc/backuppc/issues/472 (and some others one
linked in this two)

On my backuppc install, I have manually patched
"/usr/local/libexec/backuppc/configure.pl" and
"/usr/local/lib/BackupPC/Storage/Text.pm" and the problem is solved: the web
interface works correctly and both my Windows' share are saved! :-D

Can someone merge the patch, while hping someday a 4.4.1 releasde is done?

Thanks in advance! :-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275017-7788>