Commit graph

2865 commits

Author SHA1 Message Date
Florent Hemmi
008c236aab Docs: one link per distro in the installation page 2017-03-10 19:06:54 +01:00
TW
5efda261b3 Fix compression exceptions (#2224)
* trigger bug in --verify-data, see #2221

* raise decompression errors as DecompressionError, fixes #2221

this is a subclass of IntegrityError, so borg check --verify-data works correctly if
the decompressor stumbles over corrupted data before the plaintext gets verified
(in a unencrypted repository, otherwise the MAC check would fail first).

* fixup: fix exception docstring, add placeholder, change wording
2017-03-10 19:06:54 +01:00
Thomas Waldmann
391e302182 Location: accept //servername/share/path 2017-03-10 18:57:36 +01:00
Abogical
4543691c05 Add testsuite to test handling of too big xattr 2017-03-10 18:57:15 +01:00
Abogical
d11137dd37 Print a warning for too big extended attributes 2017-03-10 18:57:15 +01:00
Thomas Waldmann
c96cd1adc5 fix ChunkIndex.__contains__ assertion for big-endian archs
also: add some missing assertion messages

severity:

- no issue on little-endian platforms (== most, including x86/x64)
- harmless even on big-endian as long as refcount is below 0xfffbffff,
  which is very likely always the case in practice anyway.
2017-03-10 18:56:18 +01:00
Marian Beermann
6e27c8b6cf archive check: detect and fix missing all-zero replacement chunks, fixes #2180
# Conflicts:
#	borg/archive.py
2017-03-10 18:54:01 +01:00
Marian Beermann
29613938d5 borg rpc: use limited msgpack.Unpacker, fixes #2139
we do not trust the remote, so we are careful unpacking its responses.

the remote could return manipulated msgpack data that announces e.g.
a huge array or map or string. the local would then need to allocate huge
amounts of RAM in expectation of that data (no matter whether really
that much is coming or not).

by using limits in the Unpacker, a ValueError will be raised if unexpected
amounts of data shall get unpacked. memory DoS will be avoided.

# Conflicts:
#	borg/archiver.py
#	src/borg/archive.py
#	src/borg/remote.py
#	src/borg/repository.py
2017-03-10 18:49:41 +01:00
Marian Beermann
26b4a3938b create: handle BackupOSError on a per-path level in one spot
# Conflicts:
#	borg/archiver.py
2017-03-10 18:42:06 +01:00
Marian Beermann
9cb4b9637c new branching model
# Conflicts:
#	docs/development.rst
2017-03-10 18:30:19 +01:00
Milkey Mouse
521217550d Address SSH batch mode in docs (fixes #2202) (#2270) 2017-03-09 21:31:04 +01:00
TW
d64985dea2 Merge pull request #2248 from ThomasWaldmann/hashtable-minor-fix
rebuild hashtable if we have too little empty buckets, fixes #2246
2017-03-04 17:36:45 +01:00
Thomas Waldmann
c5cd8828b1 hashindex: rebuild hashtable if we have too little empty buckets, fixes #2246
if there are too many deleted buckets (tombstones), hashtable performance goes down the drain.
in the worst case of 0 empty buckets and lots of tombstones, this results in full table scans for
new / unknown keys.
thus we make sure we always have a good amount of empty buckets.
2017-03-04 00:53:44 +01:00
TW
12c7afa894 Merge pull request #2193 from bebehei/borg-remote-path-docs
[docs] improve remote-path description
2017-03-01 01:58:16 +01:00
enkore
9a5bc514b3 Merge pull request #2231 from leo-b/1.0-maint-patterns
Fix for PR #1971
2017-02-28 20:08:05 +01:00
Alexander 'Leo' Bergolth
fefe59589e --patterns-from was accessing args.roots instead of args.paths
add a test case that parses a command containing --patterns-from
2017-02-28 12:01:37 +01:00
enkore
8b5ad3819c Merge pull request #2228 from ThomasWaldmann/update-files-cache-inodes-1.0-maint
files cache: update inode number, backport fix for #2226
2017-02-27 16:53:18 +01:00
Thomas Waldmann
12ebbf9038 files cache: update inode number, backport fix for #2226 2017-02-27 16:02:41 +01:00
TW
dd8df84fe5 Merge pull request #2223 from kmq/1.0-maint
document snapshot usage #2178
2017-02-27 00:09:31 +01:00
kmq
96ebb096e9
Document relative path usage #1868 2017-02-27 00:51:44 +02:00
kmq
9f07d13c4a
document snapshot usage #2178 2017-02-27 00:30:26 +02:00
Benedikt Heine
f068d4e421 [docs] improve remote-path description 2017-02-22 02:03:39 +01:00
enkore
17537be13c Merge pull request #2170 from ThomasWaldmann/fuse-integer-blocks
fuse: fix st_blocks to be an integer (not float) value
2017-02-17 17:37:39 +01:00
Thomas Waldmann
81d3a4eb22 fuse: fix st_blocks to be an integer (not float) value
it's basically ceil(dsize / blocksize) now (without doing floating point ops).
2017-02-16 23:55:27 +01:00
enkore
3a3dfcbef5 Merge pull request #2149 from borgbackup/release-1.0.10
Release 1.0.10
2017-02-13 13:29:14 +01:00
Thomas Waldmann
e5f7121296 paperkey.html - decode as utf-8, fixes #2150
hardcoded the encoding for reading it. while utf-8 is the default
encoding on many systems, it does not work everywhere.

and when it tries to decode with the ascii decoder, it fails.
2017-02-13 04:12:12 +01:00
Marian Beermann
bb626034ee add paperkey.html to pyinstaller spec 2017-02-13 00:54:54 +01:00
Marian Beermann
33aeb22092 docs/api: cleanup 2017-02-12 22:49:47 +01:00
Marian Beermann
e208d1150e setup.py: build_api: sort file list for determinism 2017-02-12 22:41:35 +01:00
Marian Beermann
6304556779 ran build_usage 2017-02-12 22:33:12 +01:00
Marian Beermann
1cf58fb633 ran build_api 2017-02-12 22:33:08 +01:00
Marian Beermann
32acaff5c3 docs: changes: fix two rST warnings 2017-02-12 22:29:28 +01:00
Marian Beermann
0d20a0d6f0 key export: center QR code on the page 2017-02-12 22:26:10 +01:00
Marian Beermann
cf1f409871 add test for export key --qr-html 2017-02-12 22:26:06 +01:00
Marian Beermann
e635f219b3 update CHANGES (1.0.10) 2017-02-12 22:25:12 +01:00
enkore
d188886269 Merge pull request #1971 from leo-b/1.0-maint-patterns
new --pattern and --patterns-from options
2017-02-12 19:06:35 +01:00
enkore
c688b1be85 Merge pull request #2146 from bebehei/samefs-mountpoints-doc-maint
clearify doc for same filesystems
2017-02-12 18:40:46 +01:00
Benedikt Heine
d3a2f36b03 clearify doc for same filesystems 2017-02-12 17:18:08 +01:00
enkore
4f9dd98a31 Merge pull request #2135 from textshell/feature/paperkey-doc-qr
paperkey+qr html+js template
2017-02-12 15:33:04 +01:00
Martin Hostettler
257e55f37e Add qr html export mode to key export command 2017-02-10 22:32:01 +01:00
Martin Hostettler
52e84a6e2d quickstart.rst: Add link to paperkey template. 2017-02-10 22:32:01 +01:00
Martin Hostettler
57bc1ff47d paperkey.html: Add interactive html template for printing key backups. 2017-02-10 22:32:01 +01:00
TW
455a9c0292 Merge pull request #2136 from textshell/update-authors
Add myself to AUTHORS
2017-02-07 01:14:17 +01:00
Martin Hostettler
bd8be26e7f Add myself to AUTHORS 2017-02-07 00:32:39 +01:00
textshell
5479ef469d Merge pull request #2115 from textshell/fix/manifest-timestamp
Manifest: Make sure manifest timestamp is strictly monotonically increasing.
2017-02-04 16:17:45 +01:00
enkore
2209b9c01e Merge pull request #2122 from ThomasWaldmann/pytest2x-compat
pytest: use [pytest] section in setup.cfg
2017-02-04 15:17:52 +01:00
Thomas Waldmann
acc44a1c57 pytest: use [pytest] section in setup.cfg
[tool:pytest] only works for pytest >= 3.0.
2017-02-04 00:54:15 +01:00
Martin Hostettler
6b8cf0aa8c Manifest: Make sure manifest timestamp is strictly monotonically increasing.
Computer clocks are often not set very accurately set, but borg
assumes manifest timestamps are never going back in time.

Ensure that this is actually the case.
2017-01-30 00:21:33 +01:00
TW
d23dbb47ba Merge pull request #2110 from ThomasWaldmann/release-1.0.10rc1
release 1.0.10rc1
2017-01-29 03:39:33 +01:00
Thomas Waldmann
e6c1931d47 ran build_usage 2017-01-28 23:36:56 +01:00