summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupClientDirectoryRecord.h
Commit message (Collapse)AuthorAge
* Move reusable code out of bin directories.Chris Wilson2015-12-13
| | | | | Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was always a hack, and really doesn't work with CMake.
* Suppress multiple links warnings for now.Chris Wilson2015-02-01
|
* Fix warning about BackupClientDirectoryRecord having a non-virtual destructor.Chris Wilson2014-12-26
|
* Refactor SyncDirectory to reduce indentation and method length.Chris Wilson2014-12-10
| | | | | Move most of the code for handling individual directory entries into a separate method, SyncDirectoryEntry.
* Reformat long lines for readability, fix whitespace errors.Chris Wilson2014-12-10
|
* Improve exception message if a Daemon is used without being configured firstChris Wilson2014-09-18
|
* Use std::auto_ptrs instead of bare pointers for exclude lists.Chris Wilson2014-08-15
| | | | | Allows us to remove code to handle cleanups after exceptions and on Location destruction.
* Move code for creating/renaming remote dir to match local dir into own method.Chris Wilson2014-08-15
| | | | | | | | Reduces code indentation, scope leakage, and length of a long method. Conflicts: bin/bbackupd/BackupClientDirectoryRecord.h
* Rename rFilename argument to BackupClientDirectoryRecord::UploadFile, add ↵Chris Wilson2014-08-15
| | | | | | | | | | | remote path. rFilename renamed to rLocalPath to improve code clarity. rRemotePath added to allow it to be passed to notifier methods. Conflicts: bin/bbackupd/BackupClientDirectoryRecord.cpp
* Poll command socket regularly during file uploads.Chris Wilson2014-04-09
| | | | | Makes the daemon responsive to polling and commands, even during a file upload operation.
* Simplify exception handling by using std::auto_ptr.Chris Wilson2014-02-27
| | | | | Will result in the directory automatically being freed, whether or not an exception occurs.
* Improve logging when decrypting a filename fails during UpdateItems().Chris Wilson2012-04-11
|
* Allow getting the object ID out from a BackupClientDirectoryRecord.Chris Wilson2012-01-22
|
* Fix logging of real (non-VSS) paths in UploadFile*.Chris Wilson2011-10-25
|
* Add missing include of <memory> to fix compile.Chris Wilson2011-08-29
|
* Use "more standard" Windows API functions FindFirstFileW and FindNextFileWChris Wilson2011-08-28
| | | | | | | | | | for directory enumeration instead of _wfindfirst and _wfindnext. Ignore reparse points when enumerating directories to avoid infinite loops. Convert VSS paths back to real paths when notifying users about backup progress.
* Warn users if a file with multiple hard links is encountered during backup.Chris Wilson2011-07-29
|
* Rate limit file uploads using the configured MaxUploadRate, if any.Chris Wilson2011-01-12
|
* Separate out daemon control interfaces into BackupDaemonInterface, for Chris Wilson2008-12-30
| | | | | | use by Boxi without dragging the implementation details into lots of headers.
* Add file logging support (LogFile and LogFileLevel config options).Chris Wilson2008-09-26
| | | | | | | | | | | | | | | | Ensure that backup-finish is always called, and add a new event, backup-ok, which is called just before backup-finish when the backup run was successful. Keep track of the last backup status notification sent (excluding backup-start and backup-finish) and send a notification whenever it changes. Add a new boolean option, NotifyAlways, to override that check and always send notifications to the NotifyScript after every backup run, for notify scripts which do their own state tracking or otherwise require notification on every event.
* 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).
* 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.
* Log more detailed errors when the server returns an error while uploadingChris Wilson2007-09-01
| | | | | a file. (merges [1781])
* Skip mount points and NTFS reparse points inside a location, even ifChris Wilson2007-01-15
| | | | | not excluded (refs #3)
* Added logging of directory scans and excluded files. (refs #3)Chris Wilson2007-01-11
|
* Added a new config option, LogAllFileAccess, which will log access to every Chris Wilson2007-01-11
| | | | | | file and scanning every directory. The current implementation is taken straight from the Boxi branch. To be extended shortly. (refs #3)
* Merge chris/bb-save-state, resolving conflictsBen Summers2006-01-30
|
* 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