summaryrefslogtreecommitdiff
path: root/bin/bbackupquery
Commit message (Collapse)AuthorAge
* Allow configuration of the server port that the client will connect to Chris Wilson2008-03-28
| | | | | | | | | | | | | (bbackupd and bbackupquery). Redesign ConfigurationVerify to use classes instead of structs. Use port 22011 instead of 2201 during tests, to reduce the chances of conflicting with a running bbstored or other process. Ignore autogen_* in svn:ignore everywhere instead of individual per-file ignores.
* Improve logging with macros that consistently output strerror(errno) andChris Wilson2008-03-28
| | | | | | | | | | | | | | | errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
* Disable WSACleanup() in bbackupquery as I get an abnormal program Chris Wilson2008-03-01
| | | | | termination on it during testbbackupd.
* Fix warnings on HPPA due to assigning static strings to non-constChris Wilson2008-01-23
| | | | | char *. Thanks to Reinhard Tartler and the Debian project buildds.
* Ensure that restore failure sets the return code from bbackupquery, soChris Wilson2007-11-06
| | | | | that symlink following test fails.
* Fix compare output for missing local files which are on the store.Chris Wilson2007-11-04
|
* Set the locale from the environment, so that international charactersChris Wilson2007-09-23
| | | | | may be entered when using editline.
* Convert most printf() and fprintf() calls to use logging frameworkChris Wilson2007-08-02
| | | | | instead. (refs #3)
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* Make Configuration take a std::string filename instead of a char array,Chris Wilson2007-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in C++ style. Add a function to get default config file paths at runtime, dependent on the location of the executable being run. Pass the config file name directly to Daemon::Main, instead of faking argv. No default raid file path at compile time on Windows, depends on executable location when run. Determine RaidFile path at runtime if not supplied in config file on Windows. Don't define default locations for config files at compile time on Windows, provide macros to determine them at runtime instead. Make FileHandleGuard take a std::string instead of a char array, C++ style. Determine config file location at runtime instead of hard-coding on Windows. Thanks to Paul MacKenzie, Per Thomsen, Pete Jalajas, Stuart Sanders, Dave Bamford and Gary for pushing me to do this. (fixes #12) Determine config file path at runtime. Call Daemon::Main with config file name instead of building fake argv. (refs #3, merges [1684] [1685] [1686] [1687] [1688] [1689] [1690] [1691] [1692])
* Read any remaining data from the encoded stream (such as EOF marker)Chris Wilson2007-04-29
| | | | | | before discarding it, to ensure that we don't break the protocol. (refs #2, refs #3)
* Report Restore_UnknownError properly during restore.Chris Wilson2007-04-29
| | | | | Report unknown result codes. (refs #3)
* Return an error code on failure of lcd command.Chris Wilson2007-04-28
| | | | | | | Return an error code if get command fails due to the file already existing. (refs #3, merges [1516])
* Use logging framework for banner. (refs #3)Chris Wilson2007-04-28
|
* Improve error messages when compare throws an exception. (refs #3)Chris Wilson2007-04-28
|
* Improve error messages when Getting a file fails with an exception.Chris Wilson2007-04-28
| | | | | (refs #3)
* Fix accidental passing of object to printf() (refs #3)Chris Wilson2007-04-22
|
* Add a warning that comparing locations with a final directory separatorChris Wilson2007-04-20
| | | | | may fail (Stefan Tauner) (refs #3, merges [1512])
* Add a quiet mode to compare command, to make test output easier to read.Chris Wilson2007-03-24
| | | | | (refs #3, merges [1460])
* Initialise logging framework and set sensible default verbosity levelsChris Wilson2007-03-24
| | | | | in bbackupquery (refs #3, merges [1449])
* Report number of files and directories which could not be compared Chris Wilson2007-03-08
| | | | | | separately from compare failures, and report the appropriate return code (refs #3, merges [651])
* Report an appropriate error if the target path of the restore operationChris Wilson2007-03-08
| | | | | is not found (refs #3, merges [514])
* Catch exceptions during restore and report them, rather than abortingChris Wilson2007-03-08
| | | | | bbackupquery (refs #3)
* Count a difference when a local directory does not exist, but it doesChris Wilson2007-03-08
| | | | | exist on the server (refs #3)
* When comparing, don't recurse into excluded directories, as their contentsChris Wilson2007-01-17
| | | | | | | | will not be on the store. Fix display of filenames during compare when backing up the root directory (double slash) (refs #3)
* Ignore symlink permissions on Darwin, where they can't be set properlyChris Wilson2007-01-13
| | | | | after symlink creation (refs #3)
* Document that restore -d can be used to restore deleted files in any Chris Wilson2006-12-03
| | | | | directory, deleted or not. (refs #3)
* Fixed typo.Chris Wilson2006-11-13
|
* Setup MAINHELPER as early as possible, and clear it as late as possible, Chris Wilson2006-11-13
| | | | | for consistency (refs #3)
* Add an option to ignore attribute differences on compare. (refs #3)Chris Wilson2006-10-15
|
* Convert command-line arguments from the system locale/character set toChris Wilson2006-10-15
| | | | | the console character set. (refs #3, combine with [1050])
* Convert command-line arguments from the system locale/character set toChris Wilson2006-10-15
| | | | | | | | | the console character set (code page), so they they can be converted from console to UTF-8 (yuck). Don't try to read from stdin or change its code page when it's not open (invalid file handle) (refs #3)
* Allow getting an object with a path, not just from the current directoryChris Wilson2006-10-15
| | | | | (refs #3)
* * Add option to bbackupquery list command to show times in UTC or local timeChris Wilson2006-10-14
| | | | | (refs #3)
* * Fix compile error caused by conflicting MSVC macros (refs #3)Chris Wilson2006-10-14
|
* * bin/bbackupquery/documentation.txtChris Wilson2006-08-30
| | | | | - Revert to trunk
* * bin/bbackupquery/BackupQueries.hChris Wilson2006-08-30
| | | | | - Revert to trunk
* * bin/bbackupquery/BackupQueries.cppChris Wilson2006-08-20
| | | | | - Renamed cmd_info_t to QueryCommandSpecification as requested by Ben
* * bin/bbackupquery/BackupQueries.cppChris Wilson2006-08-20
| | | | | - Removed options without code to handle them
* * bin/bbackupquery/BackupQueries.cppChris Wilson2006-08-09
| | | | | - Use a nicer data structure for commands and their options.
* * bbackupquery/BackupQueries.cppChris Wilson2006-08-09
| | | | | - Don't call geteuid() on Windows, since it lies to us anyway
* * bin/bbackupquery/BackupQueries.cppChris Wilson2006-08-09
| | | | | - Revert to trunk
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* Apply patch from Stuart Hickinbottom <stuarth@hickinbottom.demon.co.uk> to ↵Ben Summers2006-06-19
| | | | fix complication problems with gcc 4.1.1 where configure didn't detect LLONG_MAX properly. Fix by removing configure check completely, and using STL interface.
* * BackupQueries.cppChris Wilson2006-05-10
| | | | | - Check for d_type not working on this platform, and abort compare
* * bin/bbackupquery/BackupQueries.cppChris Wilson2006-05-10
| | | | | - Win32 compile fixes
* * BackupQueries.cppChris Wilson2006-05-04
| | | | | | | | | | | - Fixed wrong path displayed during compare failure (duplicate local variable names) - Renamed some variables to make their purpose clearer, making the code easier to read - Fixed some cases where untranslated names would be shown on Win32, probably with encoding errors if they contained intl characters - Fixed a couple of minor spelling mistakes in compare output
* This is part 2 of a patch from James O'Gorman.Martin Ebourne2006-03-04
| | | | | This just renames all of the files that configure now substitutes - no changes to any of the files.
* This is part 1 of a patch from James O'Gorman.Martin Ebourne2006-03-04
| | | | | configure now detects perl executable location and updates all scripts to use the correct path; also adds PERL_EXECUTABLE define to BoxConfig.h. makebuildenv.pl adds PERL define to all makefiles.
* Merge chris/win32/vc2005-compile-fixes @ r455, add infrastructure/msvc to ↵Ben Summers2006-02-13
| | | | distribution