summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAge
* Fix bbackupquery accepting a command starting with options.Chris Wilson2014-02-07
| | | | | | | This should never have been a valid command, but was accepted before, and silently ignored because it was treated as an empty command. This obscured bad quoting of bbackupquery command-line arguments, allowing commands to appear to work, but not do what you expected.
* Split bbstoreaccounts commands out into a separate class.Chris Wilson2014-02-07
| | | | | Allows us to call them from tests without shelling out, making debugging easier.
* Show more details when bbackupquery command parsing failsChris Wilson2014-02-07
|
* Fix getopt header confusion.Chris Wilson2013-09-30
| | | | | | | | Our copy of getopt.h in lib/win32 was beating the system getopt.h in the search path, and providing different definitions, which clang picked up. Renamed our getopt.h to bsd_getopt.h, and added a box_getopt.h to decide whether to include this one instead of the system getopt.h.
* Clang complains that "enabled" is not initialised.Chris Wilson2013-09-28
| | | | | | | It doesn't know that we call a function that exits the program prematurely. In any case, this patch stops it from complaining.
* Pass std::auto_ptr objects to Protocol for upload.Chris Wilson2013-08-22
| | | | | | | | | | | Passing raw pointers is bad C++ style, and dangerous, because Protocol will free the passed-in pointers after uploading them, so we should not keep using them. Reduce code duplication in BackupClientDirectoryRecord patch/normal upload. Return a std::auto_ptr<BackupStoreFileEncodeStream> instead of a std::auto_ptr<IOStream> from BackupStoreFile::EncodeFile* functions.
* Fix failure to list files properly when not using a console on Win32Chris Wilson2012-11-27
| | | | | (e.g. from Cygwin command prompt).
* Log reason for housekeeping, or not (timer status).Chris Wilson2012-11-27
|
* Add a helper in BackupStoreAccounts to get a write lock on an account.Chris Wilson2012-11-18
| | | | | | Use it in two places to simplify code (not in BackupStoreContext yet, because that wants to communicate with HK process as well).
* Fix duplicate tagging of housekeeping messages.Chris Wilson2012-11-17
|
* Use more efficient direct reset of Timers instead of assignment.Chris Wilson2012-11-17
|
* Fix account deletion on Windows by removing write lock before deletingChris Wilson2012-11-17
| | | | | files.
* Fix compile failure due to removal of fields from BackupClientContext.Chris Wilson2012-11-08
|
* Replace magic number 1000 with MILLI_SEC_IN_SEC when initialising timers.Chris Wilson2012-11-07
| | | | | Add the start of ExperimentalSnapshotMode support.
* Refactor bbstoreaccounts code to reduce duplication.Chris Wilson2012-10-22
| | | | | | Add a bbstoreaccounts command to change the value of the AccountEnabled flag, and print its value in "bbstoreaccounts info" output.
* Fix compile error on MSVC due to attempt to convert a std::list::iteratorChris Wilson2012-07-20
| | | | | to a std::vector::iterator.
* Throw an exception if we fail to open inode database, even in release builds.Chris Wilson2012-06-29
|
* Add housekeep command to bbstoreaccounts to run housekeeping right now.Chris Wilson2012-06-29
|
* bbackupquery readline improvements, thanks to Paolo Tosco:Chris Wilson2012-05-26
| | | | | | | | | | | Automatically quote filenames including spaces on the readline input. Ignore empty commands, don't generate a parse error message. Close cleanly and quietly when EOF is input (Ctrl+D). Simplify interactive mode code in bbackupquery.
* Tag housekeeping logging with the account number and name.Chris Wilson2012-05-03
|
* Use the correct default config file for bbstored, thanks Pete!Chris Wilson2012-05-03
|
* Make BackupStoreDaemon::RunHousekeepingIfNeeded public to allow tests to ↵Chris Wilson2012-04-28
| | | | call it.
* Change BackupQueries List() to use C++ streams for output.Chris Wilson2012-04-28
|
* Allow BackupDaemon user to reset state for testing.Chris Wilson2012-04-28
|
* Treat corrupt filenames (not decryptable) as not existing, so thatChris Wilson2012-04-15
| | | | | | | | | the client will flag them for deletion, and the store will eventually prune them. We could probably recover better by flagging them for immediate deletion (Remove_ASAP) but this is a better-tested code path. Remove unused variable hasMultipleHardLinks.
* Use C++ string instead of converting to C string and back.Chris Wilson2012-04-15
|
* Fix a memory leak when TcpNice is disabled.Chris Wilson2012-04-11
|
* Improve logging when decrypting a filename fails during UpdateItems().Chris Wilson2012-04-11
|
* Really fix compile error this time.Chris Wilson2012-03-16
|
* Add support for SyncAllowScript to set maximum upload bandwidth dynamically.Chris Wilson2012-03-10
|
* Add experimental "TCP Nice" mode, disabled by default.Chris Wilson2012-02-12
|
* Fix compile error, thanks to James and Buildbot :)Chris Wilson2012-02-02
|
* If a location was not present (on disk) when bbackupd started, don't forgetChris Wilson2012-02-02
| | | | | about it but start backing it up if it appears subsequently.
* Log which account we're housekeeping, to help debug housekeeping ↵Chris Wilson2012-02-02
| | | | crashes/failures.
* Add missing space in log message for readability.Chris Wilson2012-02-02
|
* Add missing typedef to allow use of ReturnCode enum.Chris Wilson2012-01-22
|
* Allow getting the object ID out from a BackupClientDirectoryRecord.Chris Wilson2012-01-22
|
* Add remote host and port to post-login login message, requested by Pete Jalajas.Chris Wilson2011-12-13
|
* Log the account name with connections, disconnections and statistics, ↵Chris Wilson2011-12-12
| | | | requested by Pete Jalajas.
* Delete any incomplete ID map database that we find, so that we can startChris Wilson2011-10-25
| | | | | | afresh with a new one, should solve most corrupt database errors such as the ones reported by Achim.
* Fix logging of real (non-VSS) paths in UploadFile*.Chris Wilson2011-10-25
|
* Add debug logging for conversion from VSS to real path.Chris Wilson2011-10-24
|
* Convert VSS path to original path for log messages in UpdateItems, toChris Wilson2011-10-11
| | | | | help admins to interpret them.
* Fix excludions on VSS paths by converting back to original namespace beforeChris Wilson2011-10-11
| | | | | checking for them. Also simplifies code.
* Only advertise -E option if readline support is built in.Chris Wilson2011-10-08
|
* Add missing include of <memory> to fix compile.Chris Wilson2011-08-29
|
* Use "more standard" Windows API functions FindFirstFileW and FindNextFileWChris Wilson2011-08-28
| | | | | | | | | | for directory enumeration instead of _wfindfirst and _wfindnext. Ignore reparse points when enumerating directories to avoid infinite loops. Convert VSS paths back to real paths when notifying users about backup progress.
* Fix incorrect "conversion failed" message when logging NULL VSS parameter.Chris Wilson2011-08-28
| | | | | | | Fix log level of VSS component type to TRACE instead of INFO. Fix VSS path generation for absolute paths including drive letters.
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Log net traffic (in-out) in bbstored, as requested by Pete Jalajas.Chris Wilson2011-08-27
|