summaryrefslogtreecommitdiff
path: root/lib/backupclient
Commit message (Collapse)AuthorAge
* The BackupErrorDelay configuration key should not be required.Chris Wilson2014-12-06
| | | | | | | | | | | | | | | | | | | | | It has a sensible default, and backwards compatibility is broken by requiring it. > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Differential Revision: https://reviews.freebsd.org/D### (*full* phabric URL needed). > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > MFH: Ports tree branch name. Request approval for merge. > Relnotes: Set to 'yes' for mention in release notes. > Security: Vulnerability reference (one per line) or description. > Sponsored by: If the change was sponsored by an organization. > Empty fields above will be automatically removed. M BackupDaemonConfigVerify.cpp
* Allow users to configure the delay before retry on backup errors.Chris Wilson2014-12-03
|
* Fix header guard, thanks to Clang for spotting it.Chris Wilson2014-12-01
|
* Fix compile errors introduced by previous commit.Chris Wilson2014-11-23
| | | | | | Add a LogFileOverwrite option to allow configuring whether LogFile is overwritten or appended to. Overwriting happens at startup, and the start of each backup in bbackupd (via ResetLogFile()).
* Simplify code with macros, update comments and fix whitespace.Chris Wilson2014-09-04
| | | | | | Hopefully all of these changes are inconsequential. Merged back changes from the test refactor branch to reduce diffs.
* Define some functions to reduce duplication in testbbackupd.Chris Wilson2014-09-04
| | | | | | | | | Merged back changes from the test refactor branch to reduce diffs. Fix wrong setting of log level in compare() function. We want to only show errors if we expect mismatches, and show warnings if we didn't expect mismatches. I had it the other way around before.
* Add experimental "TCP Nice" mode, disabled by default.Chris Wilson2012-02-12
|
* Force all options to be present to BackupClientRestore(), to fix Chris Wilson2012-02-02
| | | | | | | misinterpretation of char * arguments as bools. Use macros to simplify test code. Test that locations not present when bbackupd started will be detected and backed up if subsequently created.
* Flush stream after restore fails, thanks to Sune Molgaard for reporting.Chris Wilson2011-09-29
|
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Move remaining parts of BackupStoreFile into lib/backupstore, and fix moduleChris Wilson2011-05-24
| | | | | | dependencies to fail if anything else required by bbstored is still in lib/backupclient instead of lib/backupstore.
* Major refactoring to make lib/backupclient depend on lib/backupstore ratherChris Wilson2011-04-26
| | | | | | | than the other way around. This is needed to allow clients to have all the code that they'd need to implement local backups (using the Local protocol) in subsequent commits.
* Log the name of the extended attribute that could not be read.Chris Wilson2011-04-23
|
* Add an exception code and a protocol error code for modifying aChris Wilson2011-04-22
| | | | | multiply referenced object.
* Add a configuration option for upload rate limiting, MaxUploadRate.Chris Wilson2011-01-12
|
* Log the path, name and size of files being restored at TRACE level forChris Wilson2011-01-08
| | | | | | | | | | users wanting more detailed restore output. Disable printing dots when logging at TRACE level is enabled. Warn rather than failing to restore when the file attributes could not be restored. (merges [2745], [2827]).
* Log the total number of bytes uploaded to the server for each file.Chris Wilson2010-11-17
|
* Reformat comments for readability.Chris Wilson2010-08-27
|
* Add inline helpers to check whether a directory entry is a file, Chris Wilson2010-08-27
| | | | | directory, old or deleted.
* Add support for account numbers greater than 0x7fffffff without wrapping.Chris Wilson2010-06-06
|
* Add option to display attribute modification times from additional Chris Wilson2010-02-24
| | | | | attributes if available in bbackupquery.
* Add method to get updated modification time of Chris Wilson2010-02-24
| | | | | | | | BackupClientFileAttributes. Add listing of attribute modification time to bbackupquery "list -t" command.
* Add notification about uploading new file attributes.Chris Wilson2010-02-24
| | | | | | Add check for changing file creation times on Windows, to cause the attributes to be uploaded again.
* Log the mismatched timestamps of files during compare in a human-readableChris Wilson2010-02-18
| | | | | | | | format as well as the raw numbers. Use existing helper functions to convert box_time_t to seconds, rather than just arbitrarily dividing by 1000000.
* Convert attributes to host byte order when reporting errors.Chris Wilson2010-02-16
| | | | | | | Convert timestamps to host byte order before dividing from usecs to secs, store in uint64_t variables to avoid truncation, and display in host byte order.
* Reformat for readability.Chris Wilson2010-02-16
|
* Log more detailed info about backup comparison failures, for debugging.Chris Wilson2010-02-10
| | | | | | Enable -V option in bbackupquery, and document that -q, -v, -V and -W<level> are allowed in the command-line help.
* Run Perl scripts quietly during make.Chris Wilson2010-01-24
|
* Add a new exception type for refcount database errors.Chris Wilson2009-06-27
|
* gcc 4.3 and 4.4 compile fixes, thanks to Reinhard Tartler and the DebianChris Wilson2009-04-03
| | | | | | | | project. See also: http://patch-tracking.debian.net/package/boxbackup/0.11~rc2+r2072-1 http://lists.warhead.org.uk/pipermail/boxbackup/2009-April/005159.html
* Change type of BackupStoreFilename not to derive from std::string, soChris Wilson2009-03-29
| | | | | | | | it can't accidentally be used as one. Fix use of encrypted filename in deleted file message, thanks to Kenny Millington for reporting.
* Switch to C++ include file names.Chris Wilson2009-03-24
|
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Add missing #include <errno.h>, needed by FreeBSD and Solaris at least.Chris Wilson2008-10-24
|
* Report the filename that failed when various file attribute syscallsChris Wilson2008-10-21
| | | | | | | fail, for example setting, listing or reading extended attributes, or creating or changing the owner of a symlink. Thanks to Torsten for noticing that the filename was not reported in these cases.
* Add file logging support (LogFile and LogFileLevel config options).Chris Wilson2008-09-26
| | | | | | | | | | | | | | | | Ensure that backup-finish is always called, and add a new event, backup-ok, which is called just before backup-finish when the backup run was successful. Keep track of the last backup status notification sent (excluding backup-start and backup-finish) and send a notification whenever it changes. Add a new boolean option, NotifyAlways, to override that check and always send notifications to the NotifyScript after every backup run, for notify scripts which do their own state tracking or otherwise require notification on every event.
* Use named timer for MaximumDiffingTime.Chris Wilson2008-09-26
|
* Reformat for readability.Chris Wilson2008-09-06
| | | | | Use SecureZeroMemory rather than memset() to wipe key material on Windows.
* Spelling fix.Chris Wilson2008-08-21
|
* Take a const std::string& for the filename rather than a const char *, Chris Wilson2008-08-21
| | | | | for C++ style.
* Pass a RunStatusProvider and a ReadLoggingStream::Logger from Chris Wilson2008-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BackupDaemon through BackupClientDirectoryRecord, BackupStoreFile and BackupStoreFileEncodeStream to ReadLoggingStream, to allow progress callbacks during file upload and cancelling upload part-way. Implement ReadLoggingStream::Logger in BackupClientDirectoryRecord::SyncParams, which thunks the notifications back to the ProgressNotifier. Add the SysadminNotifier interface from Boxi. Add NotifyIDMapsSetup() to ProgressNotifier. Change BackupClientDirectoryRecord::SyncParams to store references to the individual callback interfaces rather than BackupDaemon. Initialise all members in BackupDaemon. Add ability for BackupDaemon user to override the ProgressNotifier, LocationResolver, SysadminNotifier and RunStatusProvider that will be used during the backup. Make BackupDaemon::Location class public and provide access to the configured locations for Boxi (dangerous, they could be modified without BackupDaemon knowing it).
* Run status provider interface, needed to connect Box Backup to Boxi and Chris Wilson2008-08-21
| | | | | potentially other frontends and allow stopping a backup in progress.
* Larger buffer size for extended attributes, and better debugging.Chris Wilson2008-06-19
|
* Initialise the exists variable and fix its type.Chris Wilson2008-05-28
|
* Add restore -f option to force restore to continue after an error.Chris Wilson2008-05-05
|
* Additional #includes, thanks to the T2 ProjectChris Wilson2008-04-18
| | | | | (http://www.t2-project.org/packages/boxbackup.html)
* Reformat long lines in BackupClientRestore.cpp for readability.Chris Wilson2008-04-09
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00