Commit Graph

2870 Commits

Author SHA1 Message Date
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
TW 5859badc29 Merge pull request #1519 from enkore/issue/1115
Repository: add compact_segments progress
2016-08-21 22:54:58 +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
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
enkore 81dd381701 Merge pull request #1507 from ThomasWaldmann/use-modified-pyinstaller
use patched LDLP-preserving pyinstaller
2016-08-21 00:16:24 +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
Thomas Waldmann 821fba8cb0 use patched LDLP-preserving pyinstaller, fixes #1416
see https://github.com/pyinstaller/pyinstaller/pull/2148

also: use waf --no-lsb (the bootloader does not build without it on our wheezy32 vagrant VM)
2016-08-20 12:30:26 +02:00
TW 12ea5d01cb Merge pull request #1510 from c4rlo/os-devnull
daemonize(): use os.devnull instead of hardcoded /dev/null
2016-08-20 11:46:03 +02:00
Carlo Teubner 28076ee588 helpers.py: replace memoize with functools.lru_cache 2016-08-20 10:01:59 +01:00
Carlo Teubner 13761c4ec2 daemonize(): use os.devnull instead of hardcoded /dev/null 2016-08-20 10:00:03 +01:00
Thomas Waldmann c355f3617a Merge branch '1.0-maint' 2016-08-20 00:04:55 +02:00
enkore 45fd66f6e1 Merge pull request #1505 from ThomasWaldmann/test-list-format-depr
borg list: test for --list-format deprecation
2016-08-19 15:22:31 +02:00
Thomas Waldmann 53d14e96de borg list: test for --list-format deprecation 2016-08-19 14:55:49 +02:00
TW 32e84f33e9 Merge pull request #1484 from enkore/issue/1396
Track shadowing of log entries
2016-08-19 14:09:34 +02:00
Thomas Waldmann f32c8858ad update CHANGES with description of issue #1428 2016-08-18 23:22:50 +02:00
Thomas Waldmann dde18d6a76 security fix: --restrict-to-path must not accept pathes with same name prefix
bug: --restrict-to-path /foo  erroneously allowed  /foobar.
even worse: --restrict-to-path /foo/  erroneously allowed  /foobar.
2016-08-18 22:40:50 +02:00
Thomas Waldmann 28cbf24815 more tests for --restrict-to-path
especially test that other directory names sharing same name prefix are not allowed.
2016-08-18 22:40:50 +02:00
TW cba0c3dc59 Merge pull request #1483 from ThomasWaldmann/update-1.0-changes
WIP: update CHANGES (1.0-maint)
2016-08-18 22:17:18 +02:00
Thomas Waldmann 2aae0b17c6 update CHANGES 2016-08-18 22:15:30 +02:00
enkore b124ec648a Merge pull request #1492 from enkore/c/textshell/leaky-preload
(cherry pick) Fix leak in borg-extract --strip-components
2016-08-18 21:59:44 +02:00
Marian Beermann b46713224b Document DownloadPipeline.unpack_many precautions 2016-08-18 16:23:36 +02:00
TW feb14de813 Merge pull request #1497 from enkore/issue/1490-2
Fix cosmetics + file leftover for "not a valid borg repository"
2016-08-18 15:27:14 +02:00
TW 0fb8f73367 Merge pull request #1503 from enkore/issue/1501
Cache: release lock if cache is invalid
2016-08-18 14:24:08 +02:00
enkore 87aacad316 Merge pull request #1504 from enkore/issue/1495
Exclude incompatible tests for ArchiverTestCaseBinary
2016-08-18 12:55:25 +02:00
Marian Beermann ef13d392c7 Cache: release lock if cache is invalid 2016-08-18 12:26:14 +02:00
Marian Beermann 928f6e0ca4 repository: fix spurious, empty lock.roster on InvalidRepository exception 2016-08-18 00:54:12 +02:00
Marian Beermann adaeb32cd4 Repository: fix repo not closed cleanly on InvalidRepository exception 2016-08-18 00:54:10 +02:00
Marian Beermann c39e395ecf Exclude incompatible tests for ArchiverTestCaseBinary 2016-08-17 23:01:20 +02:00
Marian Beermann 8268e26c6b extract: refactor filter building 2016-08-17 22:36:25 +02:00
Martin Hostettler 724586e965 Add test for preloading releated leaks on extract with --strip-components 2016-08-17 01:35:43 +02:00
Martin Hostettler c84ad6b7b1 Archiver.do_extract: Fix leak of downloaded chunk contents caused by preloading
Include condition that path is non empty after applying strip_components into
filter passed to iter_items.

All filtering of files to extract must be done in the filter callable used in
archive.iter_items because iter_items will preload all chunks used in items
it returns. If they are not actually extracted the accumulate in the
responsed dict.
2016-08-17 01:35:35 +02:00
Marian Beermann 26e8ff2cbc Repository: don't use defaultdict for shadow index
avoids errors by accidentally inserting an empty list and makes it more clear.
2016-08-17 01:17:49 +02:00
Marian Beermann 833f8d1373 Track entire session
Note how this enables the much stricter check in test_moved_deletes_are_tracked
2016-08-17 01:17:49 +02:00