summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAge
* Make statistics back into a NOTICE level log again, as they're pretty Chris Wilson2008-08-22
| | | | | important and useful.
* Make BackupQueries::CompareParams public so that Boxi can use it.Chris Wilson2008-08-21
|
* Run housekeeping synchronously on all platforms if daemon is run in Chris Wilson2008-08-21
| | | | | | | single process mode (-D), not just on Windows. Add a housekeeping interface to allow Boxi to run housekeeping.
* 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
|
* Handle sysadmin notifications and calculate next sync time in Chris Wilson2008-08-21
| | | | | | | BackupDaemon::RunSyncNow, moved from RunSyncNowWithExceptionHandling, which just does the exception handling. We want to replace the exception handling in Boxi, but not the other stuff.
* Propagate BackupStoreException::SignalReceived up to BackupDaemon to Chris Wilson2008-08-21
| | | | | | abort the run, rather than treating it as a failure to upload a single file.
* More use of new interfaces, compile fix for [2245].Chris Wilson2008-08-21
|
* Pass a RunStatusProvider and a ReadLoggingStream::Logger from Chris Wilson2008-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BackupDaemon through BackupClientDirectoryRecord, BackupStoreFile and BackupStoreFileEncodeStream to ReadLoggingStream, to allow progress callbacks during file upload and cancelling upload part-way. Implement ReadLoggingStream::Logger in BackupClientDirectoryRecord::SyncParams, which thunks the notifications back to the ProgressNotifier. Add the SysadminNotifier interface from Boxi. Add NotifyIDMapsSetup() to ProgressNotifier. Change BackupClientDirectoryRecord::SyncParams to store references to the individual callback interfaces rather than BackupDaemon. Initialise all members in BackupDaemon. Add ability for BackupDaemon user to override the ProgressNotifier, LocationResolver, SysadminNotifier and RunStatusProvider that will be used during the backup. Make BackupDaemon::Location class public and provide access to the configured locations for Boxi (dangerous, they could be modified without BackupDaemon knowing it).
* Add handling of backup-error events to NotifySysAdmin.vbs.Chris Wilson2008-08-11
| | | | | Fix spelling errors.
* Move the code that runs a backup with exception handling into its ownChris Wilson2008-08-10
| | | | | method, to allow testbbackupd to call it.
* Reformat comments for readability.Chris Wilson2008-08-10
|
* Fix redundant logging of command socket messages.Chris Wilson2008-08-08
| | | | | Reformat for readability.
* Rename BackupContext to BackupStoreContext.Chris Wilson2008-08-07
| | | | | Add a TestHook to help test weird server behaviour such as crashes.
* Add machine-readable output mode (with -m option) to bbstoreaccounts info.Chris Wilson2008-08-07
|
* Log file uploads at NOTIFY level so that all you need to do to get themChris Wilson2008-08-03
| | | | | (and just them) logged is to set LogAllFileAccess = yes.
* Log the error code returned by NotifyScript.Chris Wilson2008-08-03
|
* Don't warn about ignoring sockets and FIFOs during backup, thanks toChris Wilson2008-07-03
| | | | | Tollef Fog Heen (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479145)
* Add missing #include, thanks to Alex Howansky.Chris Wilson2008-07-02
| | | | | | Reset notification state for backup-error after a successful backup, thanks to Wolfgang Trexler.
* Add bbackupquery -W<level> option to set explicit warning level, Chris Wilson2008-05-28
| | | | | | | | | | | | | | | | | | | Obsolete old (inconsistent) meaning of -q in bbackupquery. Replace -q with -Wwarning or -Werror in tests to reduce noise and fix tests. Test that reading a nonexistent directory on the server doesn't crash server or client. Test that bbackupd does continue backup run and delete files when storage limit is exceeded. Use logging guards to hide expected warnings in testbbackupd. Remove apparently pointless listing files on server at the end of testbbackupd.
* Use symbolic names instead of #defines for return codes.Chris Wilson2008-05-28
|
* Track and log file deletions by name.Chris Wilson2008-05-28
| | | | | | | | | | | | Split crypto init and file sync process into its own method, to reduce call depth and facilitate calling in process from tests. Differentiate between 3 uses of stat in BackupClientDirectoryRecord by renaming the structures. Use stat instead of lstat when checking the filesystem that's holding an entity, in case it's a symbolic link to a different filesystem.
* Shorten names used by daemons.Chris Wilson2008-05-28
|
* Catch exception on reading a directory that doesn't exist, and return a Chris Wilson2008-05-28
| | | | | protocol error message instead.
* Reformat for readability.Chris Wilson2008-05-28
| | | | | Log removal of directories by housekeeping.
* 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
|
* Additional #includes, thanks to the T2 ProjectChris Wilson2008-04-18
| | | | | (http://www.t2-project.org/packages/boxbackup.html)
* Fix crash when notifying sysadmin of an invalid event code.Chris Wilson2008-04-09
| | | | | Disable some debug logging.
* Improve LogAllFileAccess logging by making the simple case (file notChris Wilson2008-04-09
| | | | | changed) easier to read.
* 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.
* Compile fix for progress bar changes.Chris Wilson2008-04-09
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* [hg-svn @ 30cb6d2b5a2f18881f50ce8df5f7bd9e429f9fbb]Chris Wilson2008-04-04
| | | | | | | Add command-line help (usage info) to bbstoreaccounts, merges [2089]. Original author: chris@rocio.int.aidworld.org Date: 2008-03-16 19:51:27+00:00
* [hg-svn @ 9203d99fcfd5a6c90994bda6397aa55d9ac64458]Chris Wilson2008-04-04
| | | | | | | Use streams to format block counts and sizes in bbstoreaccounts, merges [2088]. Original author: chris@rocio.int.aidworld.org Date: 2008-03-16 19:50:06+00:00
* 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.
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* 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.
* Correct sysconfdir and localstatedir as they weren't doing what they were ↵James O'Gorman2008-03-25
| | | | supposed to.
* Use logging framework rather than printf to log when messages are sent Chris Wilson2008-03-13
| | | | | to the control client.
* Disable WSACleanup() in bbackupquery as I get an abnormal program Chris Wilson2008-03-01
| | | | | termination on it during testbbackupd.
* Workaround for (buggy?) gcc not finding inherited Main method on Chris Wilson2008-03-01
| | | | | Windows.
* * Move all commands from bin to sbin on Unix platformsJames O'Gorman2008-02-27
| | | | | | * Update all associated docs and contributed distribution files
* Correct typo in the NotifySysadmin.sh generationJames O'Gorman2008-02-12
|
* Add object cache debugging traces to bbstored.Chris Wilson2008-01-31
|
* Use @sysconfdir_expanded@ as default location for configuration files,Chris Wilson2008-01-28
| | | | | | | | | | | | | | | | | | | instead of /etc/box. Thanks to Eric Cronin for pointing this out. Likewise, use @localstatedir_expanded@ as default location for temporary state (*.pid and bbackupd.sock), defaults to /usr/local/var, although /var/run may be better on LFS systems. Likewise, use @bindir_expanded@ for binaries. Reformat usage text for readability. Remove the message that "Directories not checked against mountpoints", as they now are. Report the type of the unrecognised message in the "unknown error" part of the default NotifyScript.