summaryrefslogtreecommitdiff
path: root/bin/bbackupquery
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.
* 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()).
* Reinstate the -o and -d options to bbackupquery list.Chris Wilson2014-09-04
| | | | Accidentally removed by the previous change to enhance sorting of list output.
* 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.
* Poll command socket regularly during file uploads.Chris Wilson2014-04-09
| | | | | Makes the daemon responsive to polling and commands, even during a file upload operation.
* Use shared code for logging options in bbackupctl and bbackupquery.Chris Wilson2014-04-09
| | | | Enables all standard logging options and reduces code duplication.
* 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.
* Make Protocol take control of the socket object passed in.Chris Wilson2014-03-01
| | | | | | | | | | | | | We pass a std::auto_ptr<SocketStream> to every Protocol subclass when we construct it, and it takes control of this object. This reduces the risk of: * accidentally reusing the same SocketStream for multiple Protocols (it happened to me in testbackupstore); * holding onto a reference to the SocketStream; * allowing a locally-scoped SocketStream to go out of scope and be released while still being referenced by a live Protocol.
* Fix memory leak in bbackupquery readline completion.Chris Wilson2014-02-27
|
* Print a newline when user presses Ctrl+D at bbackupquery prompt.Chris Wilson2014-02-07
| | | | Makes the output look a little nicer as bbackupquery dies.
* 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.
* 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
|
* Add missing typedef to allow use of ReturnCode enum.Chris Wilson2012-01-22
|
* Only advertise -E option if readline support is built in.Chris Wilson2011-10-08
|
* Combine client and server protocols to make way for an offline/local protocol.Chris Wilson2011-08-27
| | | | | Rename ProtocolObject to Message.
* Eliminate nested macros to fix compile with MSVC 2010.Chris Wilson2011-03-26
|
* 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.
* Fix the new compile failures introduced by the previous botched readline fix.Chris Wilson2011-01-23
|
* Fix compile errors using readline on win32.Chris Wilson2011-01-21
|
* 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
|
* Compile fix for [2697].Chris Wilson2010-06-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).
* Compile fix for [2694].Chris Wilson2010-06-06
|
* Detect whether rl_completion_matches or completion_matches is declared Chris Wilson2010-02-26
| | | | | | | by readline headers at configure time, and use the appropriate one in bbackupquery. Thanks to Melissa Jenkins for reporting the compilation failure on OSX and providing additional details.
* 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.
* Updated bbackupquery help to list some undocumented options.Chris Wilson2010-02-24
|
* 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.
* 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.
* 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].