| Commit message (Collapse) | Author | Age |
|
|
|
| |
Break dependendency of test/bbackupd on individual files from other modules.
|
|
|
|
|
| |
Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was
always a hack, and really doesn't work with CMake.
|
|
|
|
|
|
|
|
| |
This test has always been fragile, and usually fails on Travis for reasons
unknown, so replace the log parsing and intercepts with simple mocking code.
This doesn't cover 100% of what the old test did, including diff timer aborts
and the number of blocks used by the uploaded files, but it should be
completely robust.
|
|
|
|
| |
Was due to accessing the exception's string after it had gone out of scope.
|
| |
|
|
|
|
| |
Allows it to be used by S3Store, or in fact anything that uses Configuration.
|
|
|
|
| |
S3Stores don't have account numbers.
|
|
|
|
|
| |
Move common code into a base class, leaving bbstored-specific code.
Add skeleton of an S3 store type.
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
| |
This allows us to store the local path to the tracked file in the database,
and will allow us to extend the storage format again in future if needed.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|