Changelog History
Page 1
-
v4.4.0 Changes
June 20, 2020๐ This release contains several new features and some bug fixes. New features include:
- any full/filled backup can be marked for keeping, which prevents any expiry or deletion
- โฌ๏ธ any backup can be annotated with a comment (eg, "prior to upgrade of xyz")
- โ added metrics CGI (thanks to @jooola) that replaces RSS and adds Prometheus support
- ๐ tar XferMethod now supports xattrs and acls
- ๐ rsync XferMethod now correctly supports xattrs on directories and symlinks
- ๐ง nightly pool scanning now verifies the md5 digests of a configurable fraction of pool files
- ๐ code runs through perltidy so format is now uniform (thanks to @jooola, with help from @shancock9 and @moisseev)
๐ New versions of BackupPC::XS (0.62) and rsync-bpc (3.0.9.15, 3.1.2.2 or 3.1.3beta0) are required.
๐ Thanks to Jeff Kosowsky for extensive testing and debugging for this release, particularly around xattrs.
Here are the more detailed changes:
- ๐ Merged pull requests #325, #326, #329, #330, #334, #336, #337, #338, #342, #343, #344, #345, #347, #348, #349
- โฌ๏ธ Filled/Full backups can now be marked as "keep", which excludes them from any expiry/deletion. Also, a backup-specific comment can be added to any backup to capture any important information about that backup (eg, "pre-upgrade of xyz").
- โ Added metrics CGI, which adds Prometheus support and replaces RSS, by @joola (#344, #347)
- ๐ Tar XferMethod now supports xattrs and acls; xattrs sbould be compatible with rsync XferMethod, but acls are not
- Sort open directories to top when browsing backup tree
- ๐ Format code using perltidy, and included in pre-commit flow, by @joola (#334, #337, #342, #343, #345). Thanks to @joola and @shancock9 (perltidy author) for significant effort and support, plus improvements in perltidy, to make this happen.
- โ Added $Conf{PoolNightlyDigestCheckPercent}, which checks the md5 digest of this fraction of the pool files each night.
- $Conf{ClientShareName2Path} is saved in backups file and the share to client path mapping is now displayed when you browse a backup so you know the actual client backup path for each share, if different from the share name
- โก๏ธ configure.pl now checks the per-host config.pl in a V3 upgrade to warn the user if $Conf{RsyncClientCmd} or $Conf{RsyncClientRestoreCmd} are used for that host, so that the new settings $Conf{RsyncSshArgs} and $Conf{RsyncClientPath} can be manually updated.
- ๐ Fixed host mutex handling for dhcp hosts; shifted initial mutex requests to client programs
- โก๏ธ Updated webui icon, logo and favicon, by @moisseev (#325, #326, #329, #330)
- โ Added $Conf{RsyncRestoreArgsExtra} for host-specific restore settings
- Language files are now all use utf8 charsets
- โฌ๏ธ Bumped required version of BackupPC::XS to 0.62 and rsync-bpc to 3.0.9.15.
- Ping failure message only written to stdout only if verbose
- ๐ BackupPC_backupDelete removes partial v3 backup in HOST/new; fixes #324 reported by @thalueng
- BackupPC_backupDelete adds -f option to over keep, if set
- BackupPC_nightly: change -f to -F when running BackupPC_refCountUpdate during fsck
- ๐ Better formatting of eval cmd result in cmdSystemOrEvalLong()
- โ Remove zero count entries in per-backup and per-host poolCnt files
- โ Add a fake version parameter to the CSS URL to overcome caching
- ๐ Fixed ALRM typo in BackupPC_dump, by @rhansen (#348)
- ๐ Fixed command name in error message in BackupPC_archive, by @rhansen (#349)
- lib/BackupPC/Xfer/Rsync.pm skips adding --iconv option when $conf->{ClientCharset} is utf8 or empty, to avoid a long-standing rsync bug
- โ lib/BackupPC/Xfer/Rsync.pm provides a more informative warning when the client rsync exits with an IO error, and also includes the IO error in the xferErr count
- lib/BackupPC/Xfer/Smb.pm recognizes NT_STATUS_LOGON_FAILURE error
- ๐ Increase text length in config editor fields, by @moisseev (#336)
- Typo fix in config.pl, by @cure (#338)
- ๐ Minor documentation updates, removing old SourceForge links
-
v4.3.2 Changes
February 17, 2020๐ This release contains several bug fixes and a few minor features:
- ๐ Merged pull requests #278, #281, #289, #295, #297, #307, #308, #311, #312, #313, #314.
- โ Added per-host read/write exclusivity to worker programs, so command-line programs don't collide with backups or other operations; reported by @hamster65 (issue #299)
- โ Added $Conf{RsyncIncrArgsExtra} (issue #284)
- โ Added $Conf{ClientShareName2Path}, which allows mapping of share names/path to real paths on the client (eg, to backup a snapshot that's in a different directory to the share name path)
- Fixed v3 digest calculation in bin/BackupPC_backupDuplicate and bin/BackupPC_migrateV3toV4; reported by @palmtop (issue #291)
- ๐ Improved handling of BackupPC_nightly running for more than 24 hours: drop next queued run, and provide better log messages; reported by @guestisp (issue #303)
- ๐ Improved error checking on $Conf{BackupPCNightlyPeriod}, and update $Info->{NightlyPhase} if it's larger than $Conf{BackupPCNightlyPeriod}; reported by @guestisp (issue #304)
- ๐ Fixed warnings in bin/BackupPC, submitted by @moisseev (#278)
- โก๏ธ Avoid rrd updates using the same time stamp, submitted by @moisseev (#311, issue #305)
- โ Removed unused counting of renamed files, submitted by @moisseev (#281)
- ๐ Make tar xfer output parsing compatible with FreeBSD tar, submitted by @haarp (#289)
- ๐ Fix daemon stdin open to read mode, submitted by @moisseev (#308)
- Hosts config editor table layout CGI fix, submitted by @steven-de-wit (#297)
- ๐ Fixes to French translation, submitted by @pjoubert- (#295)
- ๐ Fixes to Italian translation, submitted by @guestisp (#314)
- โก๏ธ Updated comments for Apache 2.4 config in httpd/src/BackupPC.conf, submitted by @NotAProfessionalDeveloper (#307)
- ๐ Documentation update for SCGI prerequisite, submitted by @guestisp (#312)
- ๐ Documentation update for nginx config, submitted by @guestisp (#313)
-
v4.3.1 Changes
July 14, 2019๐ This release contains several bug fixes.
- ๐ Merged pull request #240.
- ๐ Fixed CGI host summary columns for new Comment value; reported by @karlis-irmejs (#245).
- โ Added support to BackupPC_tarCreate for PAX headers to allow large metadata values to be correctly encoded; reported by @seblu (#254).
- ๐ Fixed regexp in BackupPC so that versions like rsync-bpc 3.1.2beta0 are matched. PR submitted by Adrien Ferrand (#240).
- โ Added more details to error messages when failing to connect to BackupPC server; reported by @dmak (#261).
- bin/BackupPC Main_Initialize() checks if a BackupPC server is running by trying to connect to it, in addition to existing check that PID exists; reported by @toggoboge (#264).
- ๐ Fixed utf8 encoded share names in deletion of orphan RsyncShareNames, reported by @Yann79 (#266).
- ๐ Fixed %Conf passing to perl code version of $bpc->cmdSystemOrEval; reported by Jeff Kosowsky.
- ๐ BackupPC_backupDelete removes files with BPC_FTYPE_DELETED from filled merged backup; reported by Jeff Kosowsky.
- โ added Data::Dumper SortKeys(1) to lib/BackupPC/Storage/Text.pm so that config hash writes have repeatable order; suggested by @kr4ut (#275).
- ๐ฒ bin/BackupPC_archive: use $bpc->openPCLogFile() instead of manual LOG file rotation
- lib/BackupPC/CGI/Archive.pm: create client directory if it doesn't exist
-
v4.3.0 Changes
November 25, 2018๐ This release includes a couple of new features (eg, checking inode usage on the BackupPC filesystem) and a few improvements (eg, html table sorting), and several bug fixes:
- ๐ Merged pull requests #200, #208, #216, #217, #229, #230, #231, #232, #233, #235.
- โ Added checking of file system inode usage, with new configuration settings $Conf{DfInodeUsageCmd} and $Conf{DfMaxInodeUsagePct}.
- ๐ bin/BackupPC_tarExtract: fixes to hardlink handling on incrementals, plus cleanup
- ๐ bin/BackupPC_backupDuplicate: fixed directory creation for copying v3 backups.
- ๐ bin/BackupPC_backupDelete: couple of inode-related bug fixes; also do fsck if $Conf{RefCntFsck} != 0.
- ๐ bin/BackupPC: fixed handling of dhcp hosts, reported by Jean-Marc.
- bin/BackupPC: improved version check of rsync_bpc to allow period before "beta", reported by @ktenney in issue #214.
- โ Added $Conf{EMailAdminSubject} to allow the admin email subject to be set.
- ๐ Changed default $Conf{CgiDateFormatMMDD} to 2 (YYYY-MM-DD), submitted by @moisseev (#231).
- ๐ Allow multiple groups in $Conf{CgiAdminUserGroup}, submitted by @moisseev (#235).
- ๐ Improvements to html table sorting, and made more tables sortable, submitted by @brenard and @moisseev (issue #199, PRs #200, #229, #230, #232).
- โ Add action type column to queue status page (#208), submitted by @brenard.
- lib/BackupPC/CGI/Summary.pm: host summary only reports age of completed backups (not partial or active), suggested by Michael Selway.
- ๐ท lib/BackupPC/CGI/HostInfo.pm: show active backup as partial if there is no job running (to handle case of abnormal exit of BackupPC), reported by @8666 in issue #220.
- systemd/src/backuppc.service: added ExecReload, submitted by @opoplawski (#233).
- ๐ lib/BackupPC/Xfer/Rsync.pm: empty $Conf{RsyncdPasswd} is no longer fatal; removed remaining mentions of RsyncdAuthRequired from conf/config.pl and lib/BackupPC/Config/Meta.pm; reported by @jooola in issue #224.
- ๐ bin/BackupPC_dump: moved alarm($Conf{ClientTimeout}) to after all the pre-backup code (including expiry, duplication etc of backups, which could be slow) reported by Michael Selway.
- โก๏ธ bin/BackupPC_refCntUpdate: added a couple of bpc_progress_state prints to improve status reporting during nightly (-m), reported by Michael Selway.
- lib/BackupPC/CGI/RSS.pm: added Disabled value to host info (copied from $Conf{BackupsDisable}); suggested by @danielmotaleite (issue #222).
- lib/BackupPC/Xfer/Rsync.pm: added checks for a couple of common rsync file error and error exit messages that now increment the xferErrs count.
- bin/BackupPC_tarExtract: errors related to a particular file are counted as Xfer errors, rather than considered fatal.
- bin/BackupPC_dump: added check that $LogFd is defined before using it.
- ๐ lib/BackupPC/Lib.pm: replaced exit() with POSIX::_exit() so that object destruction is skipped in the child process. This fixes corruption of the compressed XferLOG file if the exec of $Conf{DumpPostUserCmd} fails.
- โก๏ธ conf/config.pl: updated project home page to https://backuppc.github.io/backuppc in email message footers.
-
v4.2.1 Changes
May 07, 2018๐ This release allows the new backup delete CGI feature to be disabled for users and/or admins, plus a couple of minor bug fixes:
- ๐ Merged pull request #195.
- โ Added new config variable $Conf{CgiUserDeleteBackupEnable} that sets whether users and admins can delete backups via the CGI interface. The default value is 0, which means it's disabled for regular users but available for admins.
- Fixed delete backup bug in bin/BackupPC_Admin_SCGI reported by Julian Zielke in issue #193.
- โ Added check to dirCacheFlush() in bin/BackupPC_tarExtract to skip files that don't have attributes; reported by Tarak Patel.
- โ Removed extraneous duplicate variable assignment in lib/BackupPC/CGI/GeneralInfo.pm, from @moisseev (#195).
-
v4.2.0 Changes
April 09, 2018โ Adds a new feature that allows backups to be deleted from the CGI interface.
Full list of changes:
- ๐ Merged pull requests #160, #190.
- ๐ Backups can now be deleted via the CGI interface, written by @moisseev (#160).
- ๐ฒ bin/BackupPC_backupDelete: added -L option that puts output into client LOG file, to support CGI backup deletion.
- โ Added support for a user-editable comment per host, via a new ClientComment config parameter, requested by @andrewmaksymowsky.
- ๐ bin/BackupPC_tarExtract: Added support for pax headers, which smbclient uses for long file names
- bin/BackupPC_backupDelete: make sure directory exists when renaming tree from deleted backup.
- ๐ lib/BackupPC/Xfer/Smb.pm: ignore empty output lines from smbclient; fixes issue #159.
- bin/BackupPC: improved several of the exit error messages.
- lib/BackupPC/Xfer/Rsync.pm: added shareName to RsyncArgs* argument substitutions; suggested by Alex Kobel.
- ๐ conf/BackupPC_stnd.css: removed import url('....') suggested by @MartijnRas in issue #174.
-
v4.1.5 Changes
December 03, 2017๐ Fixes bug related to hardlinks not being correctly stored in certain cases, raised in issues #123 and #124. Changes are:
- ๐ Changed required BackupPC::XS version from 0.56 to 0.57.
- โก๏ธ bin/BackupPC_dump now updates inodeLast for share being backed up.
- โก๏ธ bin/BackupPC_refCountUpdate: inodeLast is checked and updated during fsck; needs BackupPC::XS 0.57.
โ Thanks to @SebastianS90 and others for all the help providing detailed debug information, and testing the fixes.
-
v4.1.4 Changes
November 25, 2017๐ BackupPC 4.1.4 fixes various bugs:
๐ Merged pull requests #99, #121, #125, #131, #133, #134, #137, #148, #149, #150 #151, #152, #153, #155, #157, #167
๐ฒ lib/BackupPC/Xfer/Smb.pm: made pipeSMB non-blocking to avoid a reported deadlock when BackupPC's select() returns ok for reading, but there are no bytes to read from the client tar's log/stdout output. Parallel change to lib/BackupPC/Xfer/Tar.pm in 4.1.3.
bin/BackupPC_tarCreate and bin/BackupPC_zipCreate: untaint the host name so they work with setuid under CGI; fixes empty tar or zip files downloaded via CGI interface (fixes issue #156)
๐ bin/BackupPC: fixed BackupPC::XS min version checking and error message, from @moisseev (#152)
๐ bin/BackupPC: added more detailed startup information (perl and BackupPC version) to log, from @moisseev (#157)
โก๏ธ bin/BackupPC_rrdUpdate: fixed empty pools hiding from @moisseev (#167)
lib/BackupPC/Xfer/Smb.pm: now ignores additional debug messages from smbclient, and flags lines in the XferLOG it doesn't recognize.
0๏ธโฃ lib/BackupPC/CGI/Browse.pm: default display now has the last, rather than first, share opened.
๐ Replaced submit with button so that Enter doesn't activate the Delete button. Fixes issue #161, reported by Philippe-M.
โ removed commented-out settings for some ftp args (eg, port#) in lib/BackupPC/Xfer/Ftp.pm; reported by Adam W.
๐จ bin/BackupPC_backupDelete: only print delta counts if LogLevel is >= 5
bin/BackupPC_tarExtract: fix existing file size count and size
๐ lib/BackupPC/CGI/EditConfig.pm: fixed masking of subheadings in config editor.
โช config/config.pl: added -mSMB3 to $Conf{SmbClientIncrCmd} and $Conf{SmbClientRestoreCmd}, from @SvenBunge (#99)
lib/BackupPC/Xfer/Rsync.pm: improved cleanup of orphan rsyncTmp files
In bin/BackupPC_dump, added "share" to bpc_progress_state message so it is 'backup share "$shareName"'. Patch #150 by @guestisp (issue #143)
โ added share name to log message in lib/BackupPC/CGI/Restore.pm for tar and zip restore.
๐ makeDist: fixed exit code from @moisseev (#153)
โ Added Travis CI configuration from @moisseev (#155) and enabled travis
๐ Replaced "Homepage" with "Github" in config.pl and configure.pl from @moisseev (#121)
๐ Spelling fixes, mainly in comments from @ka7 (#125).
Fixed comment in config.pl (zh_CH -> zh_CN) from @patch (#131)
๐ Fixed German translations from @mainboarder (#133, #134)
๐ Fixed minor comment typo in config.pl from @pbe-axelor (#137)
๐ Fixed comments in systemd/README from @schuetzm (#138)
๐ Fixed Italian translations from @guestisp (#148, #149; issue #142)
๐ Fixed incorrect hash key in German translations from @moisseev (#151)
-
v4.1.3 Changes
June 04, 2017๐ BackupPC 4.1.3 fixes several bugs:
๐ Merged pull requests: #109, #114
๐ Fixed editing of compound menu variables (eg: BackupFilesOnly).
โ Made tarPipe in lib/BackupPC/Xfer/Tar.pm non-blocking to avoid a reported deadlock when BackupPC's select() returns ok for reading, but there are no bytes to read from the client tar's log/stdout output. Thanks to Matt Bedynek for running various tests and providing debugging insights to track this down.
๐ Better error checking when using $f->read() on pool files. Thanks to Cody Jackson for tracking down this issue, related to reading corrupted compressed pool files. There's also an additional fix in backuppc-xs (version 0.54).
Cleans up any orphan temporary pool writing files.
๐ Fixed utf-8 output in SCGI.
๐ Fixed a reference counting bug in BackupPC_tarExtract.
๐ Fixed rsync restore transfer byte total, reported by Alexander Moisseev
Replaced logo href with https://backuppc.github.io/backuppc.
โฌ๏ธ On a v3->v4 upgrade, remove the new --one-file-system flag from the new RsyncArgs if it wasn't there before.
โ Added /usr/local/bin to search path in configure.pl from Alexander Moisseev (#109).
๐ Avoid missing or extra quotes when replacing misused undef or empty string values in configure.pl from Alexander Moisseev (#114).
โก๏ธ Chasing down a still unsolved bug with help from Lano and Dieter Fauth where newly added pool files in uncompressed backups get removed by BackupPC_refCountUpdate during a long-running backup, or if BackupPC_migrateV3toV4 is running. Two workarounds added in this release: BackupPC_migrateV3toV4 will now exit if BackupPC is running, and BackupPC_refCountUpdate only removes pool files that are more than a week old.
-
v4.1.2 Changes
May 01, 2017๐ BackupPC 4.1.2 fixes several bugs in 4.1.1. The changes include:
- ๐ Merged pull requests: #93, #94, #97, #102
- ๐ Fixed NetBios lookup of hosts, reported by Doug Lytle.
- ๐ Fixed bin/BackupPC_tarExtract and lib/BackupPC/Xfer/Ftp.pm in case where a directory tree is no longer present in a new backup. Reported by Jens Potthast and Matt Bedynek.
- ๐ Fixed SCGI when BackupPC is run in non-daemon mode (which is the systemd default starting in 4.1.1).
- โช $Conf{ClientNameAlias} can now be an array of hostnames; the first one that succeeds ping is used for the backup or restore. From martintamare (#94).
- ๐ Fixed status link in SCGI server, improved the navigation tab (now it doesn't scroll) and some css/html cleanup; from Nicholas Hall (#97).
- ๐ Fixed logic in bin/BackupPC_dump for $Conf{FixedIPNetBiosNameCheck} to prevent netbios name check; from Nicholas Hall (#102).
- ๐ Fixed config editor bug in sub-entries of hash config variables, related to SCGI.
- ๐ Fixed rsync restore of a top-level directory when the share is "/", reported by Ray Frush.
- Increased $Conf{FullKeepCnt}[0] by 1 in expiry calculations, so the most recent filled backup effectively isn't counted for expiry. This improves the behavior, particularly when $Conf{FullKeepCnt} = 1.
- ๐ฒ Rsync transfers now use --timeout=$Conf{ClientTimeout} instead of using an alarm based on rsync log output, suggested by ACR.
- โ added --delete-excluded and --one-file-system to $Conf{RsyncArgs}.
- โ Removed extra quotes from $Conf{CgiURL} in configure.pl from Alexander Moisseev (#93). Also added $DestDir to some print messages in configure.pl.
- BackupPC_dump and BackupPC_restore now support the -p option to turn off progress reports. The old -p (inplace) option to BackupPC_tarExtract is now -P.
- Backup directory mtime is now set to the backup endTime.
- โก๏ธ Updated FSF address in cgi-bin/BackupPC_Admin, reported by TomCat42 (#91).