summaryrefslogtreecommitdiff
path: root/bin/bbstored
Commit message (Collapse)AuthorAge
* Fix incorrect generation of temporary file name for applyingChris Wilson2011-01-09
| | | | | | | patches while restoring old versions of files, many thanks to Matto Marjanovic for debugging this issue and submitting a patch!
* Fix date overflow in new CA certificates, make them valid until 2038,Chris Wilson2011-01-08
| | | | | thanks to JP Vossen for reporting this.
* Implement write buffering on directories.Chris Wilson2010-09-13
|
* Adjust numbers of files and blocks in current files during backup store Chris Wilson2010-08-27
| | | | | operations.
* Report changes to object and block counts that are made by housekeeping.Chris Wilson2010-08-27
|
* Compile fix for [2694].Chris Wilson2010-06-06
|
* Build the reference counts for a directory before we start deleting Chris Wilson2010-02-28
| | | | | files, to ensure that it's initialized and memory allocated for it.
* Log keeping referenced files and deleting unreferenced ones on the Chris Wilson2010-02-28
| | | | | store.
* Run Perl scripts quietly during make.Chris Wilson2010-01-24
|
* Add methods to get the number of refcounts adjusted by the last Chris Wilson2009-11-11
| | | | | housekeeping, for testing.
* Add method to get the number of refcounts adjusted by the last Chris Wilson2009-11-11
| | | | | housekeeping, for use by tests.
* Make housekeeping check the object reference counts and fix them if Chris Wilson2009-06-28
| | | | | | | | | | | they're wrong. Add a callback interface to decouple housekeeping from the BackupStoreDaemon, allowing it to be called directly in tests. Allow housekeeping callers to request it to keep trying forever to get a lock on the account if it's busy.
* Update reference counts when files and directories are uploaded.Chris Wilson2009-06-28
|
* Change default location for config files from /etc/box to Chris Wilson2009-04-09
| | | | | /etc/boxbackup, thanks to Reinhard Tartler and the Debian Project.
* Change type of BackupStoreFilename not to derive from std::string, soChris Wilson2009-03-29
| | | | | | | | it can't accidentally be used as one. Fix use of encrypted filename in deleted file message, thanks to Kenny Millington for reporting.
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Remove unused and wrong default path for accounts database.Chris Wilson2008-10-18
|
* Add command to undelete a file, to complete the set of commandsChris Wilson2008-09-13
| | | | | implemented by the bbstored server.
* Allow stopping housekeeping during a run, between accounts, when theChris Wilson2008-09-13
| | | | | daemon is requested to terminate or to reload its configuration.
* Use logging tagger to identify clients during connections, bothChris Wilson2008-09-13
| | | | | in syslog and on the console.
* Make statistics back into a NOTICE level log again, as they're pretty Chris Wilson2008-08-22
| | | | | important and useful.
* 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.
* Rename BackupContext to BackupStoreContext.Chris Wilson2008-08-07
| | | | | Add a TestHook to help test weird server behaviour such as crashes.
* 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.
* 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
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* Correct sysconfdir and localstatedir as they weren't doing what they were ↵James O'Gorman2008-03-25
| | | | supposed to.
* * Move all commands from bin to sbin on Unix platformsJames O'Gorman2008-02-27
| | | | | | * Update all associated docs and contributed distribution files
* 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.
* Add "-h" and "/?" options to display usage in Daemon.Chris Wilson2007-10-17
| | | | | | | | | Extend usage info with service commands in BackupDaemon. Disable useless -D, -V and -k options on Windows. (merges 1855])
* 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])
* Initialise logging framework and set our program name to Chris Wilson2007-03-24
| | | | | | "Box Backup (bbstored)". (refs #3, merges [1462])
* Remove newlines from syslog() messages. (refs #3, merges [1447])Chris Wilson2007-03-24
|
* Run housekeeping in idle time on Win32 (refs #3)Chris Wilson2007-03-08
|
* Buffer store file integrity checks (refs #3)Chris Wilson2007-01-17
|
* Buffer directory reads (refs #3)Chris Wilson2007-01-17
|
* Use BufferedStream to speed up housekeeping by about ten times. (refs #3)Chris Wilson2007-01-17
|
* Catch any exceptions while handling a connection and report to user Chris Wilson2006-11-26
| | | | | | rather than terminating. Useful for non-forking servers like bbstored on Windows. (refs #3)
* Don't try to write to the interprocess socket if it's not open (refs #3)Chris Wilson2006-11-13
|
* Properly revert [1096] (refs #3)Chris Wilson2006-11-13
|
* Revert [1096] as it causes infinite loops if the listening socket Chris Wilson2006-11-13
| | | | | can't be opened (refs #3)
* Compile fixChris Wilson2006-11-06
|
* Catch exceptions from BackupStoreDaemon::Run and log them without killingChris Wilson2006-10-18
| | | | | the server process, on platforms where forking is disabled (Win32). (refs #3)
* Reinstate #ifdefs on Win32. (refs #3)Chris Wilson2006-10-18
|
* Revert patch [825] (mostly).Chris Wilson2006-10-15
| | | | | | | | Re-enable locking code on Win32 (although it's never used). Use InvisibleTempFileStream to ensure that the temporary file is always deleted. (refs #3)