[Bug 275017] sysutils/backuppc4 Problem backing up multiple SMB share (broken config from web interface)
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 275017] sysutils/backuppc4 Problem backing up multiple SMB share (broken config from web interface)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 275017] sysutils/backuppc4 Problem backing up multiple SMB share (broken config from web interface)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 275017] sysutils/backuppc4 Problem backing up multiple SMB share (broken config from web interface)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Nov 2023 19:08:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275017 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 does save: $Conf{BackupFilesOnly} = ( 'Share1$' => [ '*.a' ], 'Share2$' => [ '*.b' ] ); $Conf{SmbShareName} = ( 'Share1$', 'Share2$' ); While the correct configuration should be: $Conf{BackupFilesOnly} = { 'Share1$' => [ '*.a' ], 'Share2$' => [ '*.b' ] }; $Conf{SmbShareName} = [ '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/2c9270b9b849b2c86ae6301dd722c97757bc9256 (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! :-) -- You are receiving this mail because: You are the assignee for the bug.