summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/BackupQueries.cpp
Commit message (Collapse)AuthorAge
* Move reusable code out of bin directories.Chris Wilson2015-12-13
| | | | | Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was always a hack, and really doesn't work with CMake.
* Changed many uses of BackupProtocolClient to BackupProtocolCallable.Chris Wilson2014-09-04
| | | | | | Makes way for more use of local protocol objects and protocol subclasses. Merged back changes from the test refactor branch to reduce diffs.
* 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.
* Add option to sort results of bbackupquery ls command.Chris Wilson2014-08-15
| | | | | | | | | | The new default is to sort by name, with directories first. Put the documentation on the "ls" command, instead of the "list" command, since that's annoyed me too many times. The recursive list option is changed from "-r" to "-R", to match the shell ls command.
* Remove NoObject reply, and adapt BackupQueries accordingly.Chris Wilson2014-04-09
|
* Remove the global logging level.Chris Wilson2014-04-09
| | | | | It's incompatible with having a logger that logs everything, regardless of the global log level.
* Show more details when bbackupquery command parsing failsChris Wilson2014-02-07
|
* Fix failure to list files properly when not using a console on Win32Chris Wilson2012-11-27
| | | | | (e.g. from Cygwin command prompt).
* 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.
* Change BackupQueries List() to use C++ streams for output.Chris Wilson2012-04-28
|
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Ensure external text strings are declared as const, to fix compile errorChris Wilson2011-03-26
| | | | | on MSVC 2010.
* Hopefully fix crash on unknown commands when readline is not supportedChris Wilson2011-03-01
| | | | | by bbackupqyuery, thanks to Achim J Latz for reporting and helping to debug.
* Separate the readline-specific stuff into CommandCompletion.cpp so thatChris Wilson2011-01-21
| | | | | Boxi doesn't have to depend on readline to include BackupQueries.o.
* Fix compile failure, thanks to Achim.Chris Wilson2011-01-17
|
* Move code for comparing file data out of line for readability.Chris Wilson2011-01-16
| | | | | Add a new notification function for local file access errors, to distinguish them from download errors (remote server errors).
* Fix reported store file name and reported side of local missing files.Chris Wilson2011-01-08
| | | | | (merges [2740] from 0.11)
* 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]).
* Show the output of "pwd" at NOTICE level, so that it gets displayed in Chris Wilson2010-10-20
| | | | | release builds as well.
* Fix missing closing parenthesis after bbackupquery pwd outputs object Chris Wilson2010-10-20
| | | | | ID.
* Finish support for -i option in bbackupquery (thanks to Achim for Chris Wilson2010-10-07
| | | | | noticing) (forward port to trunk).
* Fix compile when there is no readline/editline support.Chris Wilson2010-09-29
|
* Implement basic readline/editline completion of remote file and directoryChris Wilson2010-09-29
| | | | | names, object IDs, and command options.
* Allow restoring directories with a single argument, using the remote nameChris Wilson2010-09-22
| | | | | as the local destination name also.
* Fix Windows compile errors.Chris Wilson2010-07-06
|
* Initial support for command and local file completion with readline.Chris Wilson2010-06-06
| | | | | | | | Improve bbackupquery command-line help. Add -E option to disable readline/editline as it causes problems with entering international characters on some systems (see #73).
* First attempt at tab completion for readline/libedit in bbackupquery, Chris Wilson2010-02-25
| | | | | | with commands and local file names, because it's easy and will help to find compatibility problems.
* 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.
* Move the test for excluded dirs inside the emu_lstat failure, as Chris Wilson2010-02-21
| | | | | | | | otherwise we don't know whether the file that we couldn't stat was really a file or a directory, so we can't know whether it should have been excluded, and the old code allowed dir excludes to make files appear not to exist locally, and therefore tests to fail.
* Comment why excluded directories are excluded before statting them.Chris Wilson2010-01-31
|
* Don't try to stat excluded directories, reported by Ben BennettChris Wilson2010-01-31
| | | | | [http://lists.boxbackup.org/pipermail/boxbackup/2010-January/000013.html].
* 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.
* Compile fix.Chris Wilson2009-01-24
|
* Move stream comparison code out of BackupQueries::Compare to Chris Wilson2009-01-04
| | | | | FileStream class.
* Compare API for notification on starting to compare a file or directory.Chris Wilson2009-01-03
|
* Compare interface tweaks to reduce the number of methods.Chris Wilson2008-12-31
|
* Separate out compare parameters and notification from Chris Wilson2008-12-30
| | | | | BackupQueries::CompareParams to allow Boxi to reuse this code.
* Add -m option to bbackupquery usage command for machine-readable output.Chris Wilson2008-10-16
|
* Allow undelete command to work on files as well as directories.Chris Wilson2008-09-13
| | | | | | | Add delete command that works on files and directories. Document both commands.
* Report when directory modification time is later than last sync time as Chris Wilson2008-08-21
| | | | | a possible cause of compare failure, just as we do with files.
* Use SelfFlushingStream to ensure that protocol streams are always Chris Wilson2008-08-21
| | | | | | flushed, fixes a problem where local file is not readable during compare, and stream was not flushed, breaking the rest of the compare.
* Reformat for readability.Chris Wilson2008-08-21
|
* Don't use private direct access to Configuration.mSubConfigurations.Chris Wilson2008-08-21
|
* Add machine-readable output mode (with -m option) to bbstoreaccounts info.Chris Wilson2008-08-07
|
* Use symbolic names instead of #defines for return codes.Chris Wilson2008-05-28
|
* Catch server errors when listing a directory.Chris Wilson2008-05-05
|
* Add restore -f option to force restore to continue after an error.Chris Wilson2008-05-05
|
* Check the return code from system commands in bbackupquery, and if notChris Wilson2008-04-09
| | | | | | | | | zero, give a warning and set the bbackupquery return code to COMMAND_RETURN_ERROR. Check for Restore_TargetPathNotFound on all platforms as it's not specific to Windows.