| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was
always a hack, and really doesn't work with CMake.
|
|
|
|
|
|
| |
Make some keys not required in BackupDaemonConfigVerify, and verify them
afterwards instead, when the rest of the configuration file has been read
(and in future, the store type would be known.)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The std::auto_ptr is now returned unclosed. If the caller of RunSyncNow()
does nothing with the return value, then it will be released, closing the
connection. However the caller can save the std::auto_ptr locally and
poke around in it if necessary. This interface is designed for tests only!
Merged back changes from the test refactor branch to reduce diffs.
Fix failure to record client store marker, after BackupClientContext refactor.
This caused the daemon not to abort safely if the CSM changed under our feet,
meaning that our cached data is invalid.
Fix for earlier patch to allow tests to access the BackupClientContext after
backup completes, because a new CSM wasn't generated in time for bbackupd to
record it, because the connection wasn't closed yet.
|
|
|
|
|
|
| |
Hopefully all of these changes are inconsequential.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
|
|
| |
BackupProtocolError::GetMessage().
Conflicts:
bin/bbackupd/BackupDaemon.h
|
|
|
|
|
|
|
|
| |
Conflicts:
bin/bbackupd/BackupDaemon.cpp
bin/bbackupd/BackupDaemon.h
test/bbackupd/testbbackupd.cpp
|
|
|
|
|
| |
Makes the daemon responsive to polling and commands, even during a file
upload operation.
|
| |
|
| |
|
|
|
|
|
| |
about it but start backing it up if it appears subsequently.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Rename ProtocolObject to Message.
|
|
|
|
| |
Achim, closes #61.
|
|
|
|
|
| |
Clean up VSS resources at end of backup.
|
|
|
|
|
| |
Windows path to the snapshot for each location.
|
|
|
|
|
| |
Clean up writer metadata and writer status after use.
|
|
|
|
|
|
|
| |
Start a snapshot set and add backup locations as volumes.
Modularise IVssAsync waiting code.
|
| |
|
| |
|
|
|
|
|
|
| |
Add check for changing file creation times on Windows, to cause the
attributes to be uploaded again.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Handle command socket on Win32 the same as all other platforms, removing
#ifdefs from BackupDaemon.
Will replace this thread with regular but not excessive command socket
polling using timers in future.
Change error messages when command socket comms fail to make them clearer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
method, to allow testbbackupd to call it.
|
|
|
|
|
| |
(and just them) logged is to set LogAllFileAccess = yes.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Windows.
|
|
|
|
|
|
|
|
|
| |
Extend usage info with service commands in BackupDaemon.
Disable useless -D, -V and -k options on Windows.
(merges 1855])
|
|
|
|
|
|
| |
Move Windows service startup, installation and removal to BackupDaemon.
(merges [1854])
|
| |
|
|
|
|
|
|
| |
default script does nothing in this case. Requested by
scott <scott@lubetech.com.au>.
|
|
|
|
|
| |
a file. (merges [1781])
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
deadlocks.
Use events, and a message list protected by a critical section, to pass
messages between threads.
(refs #3)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an exception occurs during the backup.
Make bbackupd notify sysadmin when an exception occurs during the backup,
using this error code, and the notification string "backup-error".
Change NotifyEvent__MAX to be one greater than the highest notification
constant, makes code more maintainable.
(refs #3)
|
|
|
|
|
| |
(refs #3)
|
|
|
|
|
| |
not excluded (refs #3)
|
| |
|
|
|
|
|
|
| |
file and scanning every directory. The current implementation is taken
straight from the Boxi branch. To be extended shortly. (refs #3)
|
|
|
|
|
|
|
| |
* bbackupd/BackupDaemon.cpp
- Made SerializeStoreObjectInfo() return a boolean, true if it
successfully saved the store object info file, false otherwise.
|
|
|
|
|
| |
- Revert to trunk
|
|
|
|
|
|
|
| |
- 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).
|
|
|
|
| |
distribution
|