| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
| |
Thanks to Kai Liebenau for finding and fixing this bug.
Also use VssFreeSnapshotProperties instead of rolling our own, also thanks to
Kai.
This has not been compile tested on Windows.
|
| |
|
|
|
|
| |
Thanks to Achim for the patch! https://www.boxbackup.org/ticket/67
|
| |
|
|
|
|
| |
Improve correctness and reduce code duplication in bbackupctl.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Thanks to Kai Liebenau for spotting it and submitting patches. I don't see
any need to actually collect link_st (using lstat) any more, because if the
location root is a symlink then we should just backup everything inside its
destination without question, and if it's not, comparing stat(parent) and
stat(child) will detect the difference, so no need to use lstat(parent)
instead.
|
|
|
|
|
| |
And compile errors on recent MinGW.
|
|
|
|
|
|
|
|
| |
Helps to debug tests that depend on subsecond timing.
Log time to wait on command socket in fractional seconds instead of raw
box_time_t.
|
| |
|
| |
|
|
|
|
|
| |
Move most of the code for handling individual directory entries into a
separate method, SyncDirectoryEntry.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Add a LogFileOverwrite option to allow configuring whether LogFile is
overwritten or appended to. Overwriting happens at startup, and the start
of each backup in bbackupd (via ResetLogFile()).
|
|
|
|
| |
Prevents backup log files from becoming too large.
|
| |
|
| |
|
|
|
|
| |
Accidentally removed by the previous change to enhance sorting of list output.
|
| |
|
|
|
|
|
| |
Some tests need to do this. I don't think it happens in normal use,
because the daemon's response to HUP takes a different path, I think.
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Makes way for more use of local protocol objects and protocol subclasses.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
|
|
|
|
| |
Allows it not to throw an exception if timers weren't initialised when
cleanup was requested. Normally we want an exception thrown, but not while
we're cleaning up a test that might have failed with timers uninitialised.
More timers fixes after cleanup no-exception option.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
| |
Hopefully all of these changes are inconsequential.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
|
| |
For some reason the timing changed and the test was no longer waiting for the
same length of time as bbackupd, causing it to fail.
Merged back changes from the test refactor branch to reduce diffs.
|
|
|
|
|
|
|
|
|
|
| |
The new default is to sort by name, with directories first.
Put the documentation on the "ls" command, instead of the "list" command,
since that's annoyed me too many times.
The recursive list option is changed from "-r" to "-R", to match the shell
ls command.
|
|
|
|
| |
Avoid reporting an error if the file is missing or empty.
|
| |
|
|
|
|
|
|
|
|
| |
If the system is suspended then it may not realise that a TCP connection has
been closed, while waiting for data to arrive on it. We didn't used to apply
a timeout to this read operation. Now we use the connection's default timeout
on all read and write operations. Network operations that don't pass a timeout
will be logged with a backtrace, so that they can be fixed.
|
| |
|
|
|
|
|
| |
Allows us to remove code to handle cleanups after exceptions and on Location
destruction.
|
|
|
|
|
|
|
|
| |
BackupProtocolError::GetMessage().
Conflicts:
bin/bbackupd/BackupDaemon.h
|
|
|
|
|
|
|
|
| |
Reduces code indentation, scope leakage, and length of a long method.
Conflicts:
bin/bbackupd/BackupClientDirectoryRecord.h
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Conflicts:
bin/bbackupd/BackupDaemon.cpp
bin/bbackupd/BackupDaemon.h
test/bbackupd/testbbackupd.cpp
|
|
|
|
| |
To help with debugging.
|
|
|
|
|
|
| |
Conflicts:
bin/bbackupd/BackupClientDirectoryRecord.cpp
|