Commit Graph

3097 Commits

Author SHA1 Message Date
Martin Hostettler 549be2129a RepositoryServer: Add error message when connection was closed before opening repo. 2016-08-24 08:32:04 +02:00
Martin Hostettler 79de73685b remote: Change exception message for unexpected RPC data format to indicate dataflow direction
don't print stacktraces to clean up error messages when sshing into a forces command to borg serve.
2016-08-24 08:31:09 +02:00
TW 316ad336c7 Merge pull request #1523 from ThomasWaldmann/use-prebuilt-bootloader
Vagrant: pyinstaller: use pre-built linux bootloaders, fixes #1506
2016-08-24 00:24:33 +02:00
TW b403a111fe Merge pull request #1530 from ThomasWaldmann/simplify-repo-tests
Simplify repo/hashindex tests
2016-08-23 22:33:15 +02:00
Thomas Waldmann 93517ca30e hashindex tests: use H(x) instead of some similar constructs
note: hash values needed updating because H(x) formats differently.
2016-08-23 21:29:40 +02:00
Thomas Waldmann 0da0914955 repo tests: use H(x) instead of some similar constructs 2016-08-23 21:29:40 +02:00
Thomas Waldmann ddb1c60964 repo tests: use H(x) instead of byte literals 2016-08-23 21:29:40 +02:00
TW d938cf44d7 Merge pull request #1529 from svx/1.0-maint
Addjust border color
2016-08-23 15:19:26 +02:00
sven 248ccf0149 Update borg.css 2016-08-23 15:01:39 +02:00
TW a54205d696 Merge pull request #1528 from svx/master
Addjust border color
2016-08-23 14:55:56 +02:00
sven ff04c059b7 Addjust border color
This changes the border-color to match with the background-color
2016-08-23 14:27:26 +02:00
Martin Hostettler b845a074cb tests: TestBuildFilter: Adjust from item_is_hardlink_master to peek_and_store_hardlink_masters. 2016-08-22 23:36:43 +02:00
Martin Hostettler a026febdb0 Archiver.build_filter: strip_components is no longer a optional parameter. 2016-08-22 23:07:38 +02:00
Martin Hostettler 972392e290 extract: When doing a partial restore don't leak prefetched chunks.
The filter function passed to iter_items (with preload=True) may never return True for items that
are not really extracted later because that would leak prefetched items.

For restoring hard linked files the item containing the actual chunks might not be matched
or implicitly removed from the restore by strip_components. For this reason the chunk list or all
items that can potentially be used as hardlink target needs to be stored.

To achive both requirements at the same time the filter function needs to store the needed information
for the hardlinks while not returning True just because it could be a hardlink target.

Known problems: When using progress indication the calculated extracted_size now can be smaller
than the actual extracted size in presence of hard links (master is not restored) instead of
bigger (potential master not used in restore).
2016-08-22 22:58:58 +02:00
Martin Hostettler 484c091c62 RepositoryServer: Don‘t try to close the repository if it was not yet opened. 2016-08-22 19:48:39 +02:00
Thomas Waldmann 2cfd905347 Vagrant: pyinstaller: use pre-built linux bootloaders, fixes #1506 2016-08-22 18:49:03 +02:00
TW e0b8635098 Merge pull request #1521 from ThomasWaldmann/fix-coverage
fix .coverage processing
2016-08-22 01:37:43 +02:00
Thomas Waldmann 85311f0116 fix .coverage processing 2016-08-22 01:15:03 +02:00
enkore 3f5f27fbfe Merge pull request #1520 from ThomasWaldmann/merge-1.0-maint
Merge 1.0 maint
2016-08-22 00:36:13 +02:00
Thomas Waldmann 6da34fcc5a add debug-info usage help file 2016-08-22 00:14:11 +02:00
Thomas Waldmann d1d2738381 re-enable fuse tests for RemoteArchiver
at some time they had deadlock issues, but it worked for me now.
2016-08-22 00:14:10 +02:00
Thomas Waldmann ebe1143570 travis: test fuse-enabled borg 2016-08-22 00:14:08 +02:00
Thomas Waldmann 2a41569fec use trusty for testing, to have a recent FUSE 2016-08-22 00:12:57 +02:00
Carlo Teubner 3f30649a85 internals.rst: fix typos 2016-08-22 00:10:49 +02:00
Thomas Waldmann a7c370b5ed add debug-info usage help file 2016-08-21 23:37:07 +02:00
TW 5859badc29 Merge pull request #1519 from enkore/issue/1115
Repository: add compact_segments progress
2016-08-21 22:54:58 +02:00
enkore ea14384dda Merge pull request #1517 from ThomasWaldmann/reenable-remotearchiver-fuse-test
re-enable fuse tests for RemoteArchiver
2016-08-21 22:47:34 +02:00
enkore 725eaf28ce Merge pull request #1518 from ThomasWaldmann/travis-fuse-testing
travis: test fuse-enabled borg
2016-08-21 22:32:06 +02:00
Thomas Waldmann 32bd29548b travis: test fuse-enabled borg 2016-08-21 22:07:59 +02:00
Thomas Waldmann 7e80f6821d use trusty for testing, to have a recent FUSE 2016-08-21 22:07:59 +02:00
Marian Beermann 53d0140bd5 Repository: add compact_segments progress 2016-08-21 21:55:53 +02:00
TW 2f65f7bdec Merge pull request #1449 from enkore/f/extractprogress
extract --progress
2016-08-21 20:24:44 +02:00
enkore ed6a054310 Merge pull request #1516 from sudoman/sudoman-doc-changes-0
added doc for "pull" type backup over sshfs
2016-08-21 20:19:29 +02:00
Marian Beermann ab31ffaa85 ProgressIndicatorPercent: remove same_line 2016-08-21 19:57:36 +02:00
Marian Beermann e7d44cec39 extract: --progress: Calculating size 2016-08-21 19:57:36 +02:00
TW ab96c6496c Merge pull request #1513 from ThomasWaldmann/improve-error-logging
improve error logging, fixes #1440
2016-08-21 18:29:18 +02:00
Thomas Waldmann 273bd57cd8 re-enable fuse tests for RemoteArchiver
at some time they had deadlock issues, but it worked for me now.
2016-08-21 18:13:23 +02:00
Andrew Engelbrecht f8bb73732c added doc for "pull" type backup over sshfs
Fixes #900
2016-08-21 01:04:16 -04:00
Marian Beermann 4d214e2503 Simplify and test Item.file_size 2016-08-21 01:09:21 +02:00
Marian Beermann 5924915d35 Flip ProgressIndicatorPercent same_line default to True
Every production use of this uses same_line=True
2016-08-21 01:09:20 +02:00
Marian Beermann 8709cec57c borg-extract --progress 2016-08-21 01:07:55 +02:00
TW 7501430c5d Merge pull request #1514 from ThomasWaldmann/fix-typos
internals.rst: fix typos
2016-08-21 00:18:35 +02:00
enkore 81dd381701 Merge pull request #1507 from ThomasWaldmann/use-modified-pyinstaller
use patched LDLP-preserving pyinstaller
2016-08-21 00:16:24 +02:00
Carlo Teubner 1c666222a7 internals.rst: fix typos 2016-08-21 00:15:56 +02:00
enkore 9baa024f4a Merge pull request #1508 from ThomasWaldmann/merge-1.0-maint
Merge 1.0 maint
2016-08-21 00:12:00 +02:00
Thomas Waldmann 41e4707d6a fixup: meant "tb", not "traceback" 2016-08-20 23:09:42 +02:00
TW 357f4ef72e Merge pull request #1511 from c4rlo/lru-cache
helpers.py: replace memoize with functools.lru_cache
2016-08-20 21:19:17 +02:00
Thomas Waldmann a0c8c40f27 improve error logging, fixes #1440
archiver: split traceback and msg, have separate log level for traceback, log LockTimeout at debug level,
for "Error" exceptions: always log the traceback, either at ERROR or DEBUG level.

remote: if we have an "Error" typed exception instance, we can use its traceback flag and .get_message()
as we do locally.
2016-08-20 17:23:02 +02:00
Carlo Teubner 61af307ad4 helpers.py: replace memoize usages with lru_cache 2016-08-20 13:06:16 +01:00
Thomas Waldmann e7fccaccb2 restore original LDLP, if possible, fixes #1498
see https://github.com/pyinstaller/pyinstaller/pull/2148
2016-08-20 12:31:23 +02:00