Thomas Waldmann
5deac22834
use pyinstaller v3.2.1, fixes #2396
...
this fixes that the prelink cronjob on some distros kills the
borg binary by stripping away parts of it.
2017-04-07 17:10:08 +02:00
enkore
bb7d4bac13
Merge pull request #2382 from ThomasWaldmann/backports2
...
1.0-maint backports
2017-04-04 19:39:57 +02:00
Marian Beermann
949871d463
serve: fix forced command lines containing BORG_ env vars
...
(cherry picked from commit 88dfb3e9c5
)
2017-04-04 18:50:09 +02:00
Thomas Waldmann
c07c911643
fix error msg, it is --keep-within, not --within
...
(cherry picked from commit 9957282315
)
2017-04-03 22:47:09 +02:00
Thomas Waldmann
1e44ea8869
fix borg key/debug/benchmark crashing without subcommand, fixes #2240
...
(cherry picked from commit a38a7d0293
)
2017-04-03 22:42:59 +02:00
TW
eedb2b582b
Merge pull request #2381 from ThomasWaldmann/backports
...
1.0-maint backports
2017-04-03 22:38:48 +02:00
Marian Beermann
b1466f530b
docs: kill api page
...
(cherry picked from commit 475d53d9ef
)
2017-04-03 22:02:51 +02:00
Fredrik Mikker
8b2c9fd7db
Added FAQ section about backing up root partition
...
Using borgbackup to backup the root partition works fine, just
remember to exclude non-essential directories.
Signed-off-by: Fredrik Mikker <fredrik@mikker.se>
(cherry picked from commit d01a8f54b6
)
Plus typo-fix by @enkore.
(cherry picked from commit dfdf590445
)
2017-04-03 21:38:53 +02:00
enkore
f2b222b2c2
Archive: allocate zeros when needed ( #2308 )
...
fixes huge memory usage of mount (8 MiB × number of archives)
(cherry picked from commit 883a7eefb2
)
2017-04-03 21:28:23 +02:00
enkore
50b4c9f2f9
Merge pull request #2358 from ThomasWaldmann/refactor-extract-1.0
...
extract: small bugfix and refactoring for parent dir creation
2017-04-01 20:49:36 +02:00
Thomas Waldmann
f1bc2076a7
extract: remove duplicate code
...
anything at <path> gets nuked already a few lines above, if possible.
2017-04-01 20:14:15 +02:00
Thomas Waldmann
ff4f04e5f1
extract: small bugfix and refactoring for parent dir creation
...
make_parent(path) helper to reduce code duplication.
also use it for directories although makedirs can also do it.
bugfix: also create parent dir for device files, if needed.
(cherry picked from commit d4e27e2952
)
2017-04-01 20:14:15 +02:00
TW
f3decf57fd
Merge pull request #2373 from ThomasWaldmann/travis-1.0
...
enhance travis setuptools_scm situation
2017-04-01 20:13:07 +02:00
Ronny Pfannschmidt
57f7deb232
enhance travis setuptools_scm situation
...
* add setuptools_scm to the development requirements
* print the own version at install time
* unshallow the repo and fetch all tags
2017-04-01 19:50:54 +02:00
TW
187f00b44a
Merge pull request #2326 from ThomasWaldmann/update-1.0-changes
...
update CHANGES (1.0)
2017-03-25 16:39:58 +01:00
Thomas Waldmann
4e33f64eed
update CHANGES (1.0)
2017-03-22 02:32:48 +01:00
TW
6eca1ee6be
Merge pull request #2312 from ThomasWaldmann/fix-2304-1.0
...
clamp (nano)second values to unproblematic range, fixes #2304
2017-03-21 19:24:07 +01:00
Thomas Waldmann
07bcd29144
clamp (nano)second values to unproblematic range, fixes #2304
...
filesystem -> clamp -> archive (create)
(cherry picked from commit b7a17a6db7
)
2017-03-16 20:54:33 +01:00
TW
d1858ff845
Merge pull request #2303 from ThomasWaldmann/fix-caskroom-link-1.0
...
fix caskroom link, fixes #2299
2017-03-15 02:55:06 +01:00
Thomas Waldmann
6a89e4f0a5
fix caskroom link, fixes #2299
...
backport of #2302 .
2017-03-15 01:29:19 +01:00
enkore
5990b0ad9a
Merge pull request #2286 from ThomasWaldmann/no-keep-last
...
fix error msg, there is no --keep-last in borg 1.0.x, fixes #2282
2017-03-12 11:56:09 +01:00
enkore
13455ab9a2
Merge pull request #2284 from enkore/cp1
...
picked cherries for 1.0-maint
2017-03-11 14:43:22 +01:00
Thomas Waldmann
a55807e7be
fix error msg, there is no --keep-last in borg 1.0.x, fixes #2282
2017-03-10 23:47:26 +01:00
Thomas Waldmann
be1227fd1c
borg delete --force --force to delete severely corrupted archives, fixes #1975
...
(cherry picked from commit 4d81b186ec
)
2017-03-10 23:03:25 +01:00
Abdel-Rahman
bfc745237a
extract: warning RC for unextracted big extended attributes, followup ( #2258 )
...
* Set warning exit code when xattr is too big
* Warnings for more extended attributes errors (ENOTSUP, EACCES)
* Add tests for all xattr warnings
(cherry picked from commit 63b5cbfc99
)
2017-03-10 22:44:27 +01:00
Abdel-Rahman
b4c0dcfbdf
Add return code functions ( #2199 )
...
(cherry picked from commit 4b33c3fe14
)
2017-03-10 22:44:27 +01:00
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