summaryrefslogtreecommitdiff
path: root/bin/bbstored
Commit message (Collapse)AuthorAge
* 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)
* Revert patch [862] (refs #3)Chris Wilson2006-10-15
|
* * Added support for Win32 temporary filesChris Wilson2006-10-13
| | | | | | | * Added InvisibleTempFileStream class and unit tests for it * Use InvisibleTempFileStream instead of FileStream for temporary files (refs #3)
* * bin/bbstored/BackupStoreDaemon.hChris Wilson2006-08-31
| | | | | | - Reinstate SendMessageToHousekeepingProcess() on Win32, but make it do nothing (refs #3)
* * bin/bbstored/BackupContext.cppChris Wilson2006-08-31
| | | | | | | - Delete the temporary file on Win32 just like on other platforms (note that this reduces the guarantees that the file will be deleted, especially if an exception is thrown, refs #819)
* * bin/bbstored/BackupCommands.cppChris Wilson2006-08-31
| | | | | | - Use the same code for file names and file closing on other platforms that's needed on Win32
* * bin/bbstored/HousekeepStoreAccount.cppChris Wilson2006-08-30
| | | | | | | - Disable checks for inter-process messages on Win32 (there is only one process) - Close directory immediately after we finish reading it
* * bin/bbstored/HousekeepStoreAccount.cppChris Wilson2006-08-30
| | | | | - Revert to trunk
* * bin/bbstored/BackupStoreDaemon.hChris Wilson2006-08-30
| | | | | | | * bin/bbstored/BBStoreDHousekeeping.cpp - Split housekeeping process into separate initialisation, process loop and run methods (we don't want the process loop on Win32)
* * bin/bbstored/BBStoreDHousekeeping.cppChris Wilson2006-08-30
| | | | | - Only include syslog.h if we have one
* * bin/bbstored/BackupStoreDaemon.hChris Wilson2006-08-30
| | | | | - Removed SendMessageToHousekeepingProcess() on Win32, no longer needed
* * bin/bbstored/BBStoreDHousekeeping.cppChris Wilson2006-08-30
| | | | | - Revert to trunk
* * bin/bbstored/BackupStoreDaemon.cppChris Wilson2006-08-30
| | | | | - Cast off_t to long long, in case they differ in size (e.g. Win32)
* * bin/bbstored/BackupStoreDaemon.hChris Wilson2006-08-30
| | | | | - Revert to trunk
* * bin/bbstored/BackupStoreDaemon.cppChris Wilson2006-08-30
| | | | | - Only include <syslog.h> if we have it
* * bin/bbstored/BackupStoreDaemon.cppChris Wilson2006-08-30
| | | | | - Revert to trunk
* * bin/bbstored/BackupContext.cppChris Wilson2006-08-30
| | | | | | | | | - Removed locking on Win32, there is no housekeeping process to lock against - Open files with O_BINARY on Win32 - Fixed a cosmetic spelling mistake in a comment - Unlink file later on Windows, since we can't do it while it's open
* * bin/bbstored/BackupContext.cppChris Wilson2006-08-30
| | | | | - Revert to trunk
* * bin/bbstored/BackupCommands.cppChris Wilson2006-08-30
| | | | | | | - Can't unlink open files on Win32. This is not the correct fix, but it does work around the problem. - Only include syslog.h if we have it
* * bin/bbstored/BackupCommands.cppChris Wilson2006-08-30
| | | | | - 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).
* 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.
* Bandwidth usage logging patch from Pascal Lalonde <plalonde@overnet.qc.ca>, ↵Ben Summers2006-02-13
| | | | with minor change to exception handling
* Bump ident string version to stop new clients connecting to old serversBen Summers2006-02-11
|
* * configure.acChris Wilson2006-01-28
| | | | | | | | | | | | | | | | | | | * bin/bbstored/backupprotocol.txt * bin/bbstored/BackupCommands.cpp * bin/bbackupd/BackupClientContext.cpp * bin/bbackupd/BackupClientContext.h * bin/bbackupd/BackupClientDirectoryRecord.cpp * bin/bbackupd/BackupDaemon.cpp * lib/backupclient/BackupStoreFileDiff.cpp * lib/backupclient/BackupDaemonConfigVerify.cpp * lib/backupclient/BackupStoreFile.h * test/backupstore/testbackupstore.cpp * test/backupstorepatch/testbackupstorepatch.cpp - Applied changes from chris/diff-timeout-and-ssl-keepalive * test/backupdiff/testbackupdiff.cpp - Fixed test to match new prototype for EncodeFileDiff
* 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.
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14