summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/BackupQueries.cpp
Commit message (Collapse)AuthorAge
* 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.
* 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
* Make usage output (from bbstoreaccounts info and bbackupquery usage)Chris Wilson2008-04-03
| | | | | | consistent and easier to read, with blocks, B/kB/MB/GB, % and an ASCII bar graph.
* 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.
* 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
|
* 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
|
* 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])
* 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])
* 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)
* 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 (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/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
* Merge chris/win32/vc2005-compile-fixes @ r455, add infrastructure/msvc to ↵Ben Summers2006-02-13
| | | | distribution
* * infrastructure/makeparcels.plChris Wilson2006-01-28
| | | | | | | | | | | | | | | | | | | | | | | - Use the target platform's name, rather than the build platform, in the generated package file names (useful for cross-compiling) * lib/win32/emu.cpp - Don't log a warning when statting a file that doesn't exist, as bbackupquery does this to verify that the target does not exist before restoring * lib/backupclient/BackupClientFileAttributes.cpp - Fixed a missing endian conversion that was causing file timestamps to appear to be invalid, generating warnings about every file on the server, on Win32 * parcels.txt - Include a couple of DLL files in the package on MinGW, which are needed to run the compiled binaries * bin/bbackupquery/BackupQueries.cpp - Fixed usage text for the "get" command
* Rationalise type usage for time values. Now:Martin Ebourne2005-12-20
| | | | | | Box time is always box_time_t seconds is time_t microseconds is uint64_t
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Marged chris/win32/merge/07-win32-fixes at r210 to trunkMartin Ebourne2005-12-12
|
* Merged martin/autoconf at r35 to trunkMartin Ebourne2005-12-07
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14