Manu
e155822474
Quit with error message when no config key is provided. Fixes #4223
2019-01-30 11:31:53 +08:00
TW
2bcff382cb
Merge pull request #4247 from ThomasWaldmann/memoryview-cm
...
correctly release memoryview
2019-01-29 15:53:47 +01:00
Thomas Waldmann
b4c68de128
avoid diaper pattern in configparser by opening files, fixes #4263
...
this will fail early with correct error msg / exception traceback
if a config file is not readable.
2019-01-27 03:28:11 +01:00
Thomas Waldmann
78361744ea
keep "data" as is, use "d" for slices
...
so that the data.release() call is on the original memoryview and
also we can delete the last reference to a slice of it first.
2019-01-25 02:09:00 +01:00
Thomas Waldmann
2910d13055
use try/finally to ensure correct memoryview release
...
see #4243 .
2019-01-25 02:09:00 +01:00
Thomas Waldmann
02f3daebbe
use a contextmanager to ensure correct memoryview release
...
see #4243 .
2019-01-25 02:09:00 +01:00
Thomas Waldmann
2a981ba8eb
avoid breakage with msgpack 0.6.0+, keep old limits, fixes #4220
...
for the Unpacker class, our msgpack wrapper already enforced own
defaults (identical to msgpack < 0.6.0 defaults) - no problem there.
for the unpack and unpackb functions, this changeset enforces the
same defaults in the wrapper, overriding the msgpack 0.6.0+ new
defaults (which caused breakage as seen in #4220 ).
2019-01-05 22:54:35 +01:00
cornop
1dad7a39fd
Clarify the necessity to separately backup key in repokey mode ( #4237 )
...
clarify the necessity to separately backup key in repokey mode
2019-01-05 14:46:24 +01:00
Thomas Waldmann
ca6a7d1500
on linux, symlinks can't have ACLs, see #4044
...
(cherry picked from commit ca1928c925 )
2018-12-15 21:32:27 +01:00
Thomas Waldmann
2fe88c0efb
remove deprecated option: --no-files-cache
...
replaced by: --files-cache=disabled
2018-12-11 23:55:29 +01:00
Thomas Waldmann
d6a82acbc1
remove deprecated option: --ignore-inode
...
replaced by: --files-cache (without "inode")
2018-12-11 22:55:33 +01:00
Thomas Waldmann
c87393cab7
remove deprecated option: --list-format
...
replaced by: --format
2018-12-11 22:42:48 +01:00
Thomas Waldmann
933e82a49c
remove deprecated option: --keep-tag-files
...
replaced by: --keep-exclude-tags
2018-12-11 22:41:23 +01:00
Thomas Waldmann
7cd1b8151e
remove deprecated command: borg change-passphrase
...
replaced by: borg key change-passphrase
2018-12-11 22:36:39 +01:00
Thomas Waldmann
2be5446098
Revert "drop support for python 3.5, fixes #3919 "
...
This reverts commit 55314f807e .
2018-12-11 00:53:43 +01:00
Thomas Waldmann
65d8091245
invalid locations: give err msg containing parsed location, fixes #4179
2018-11-28 01:04:28 +01:00
Thomas Waldmann
e9ac9beef0
list repo: add placeholders for hostname and username, fixes #4130
...
also: use a more generic get_meta() access method to avoid duplication.
2018-11-27 23:56:07 +01:00
Thomas Waldmann
3d05a4b114
xattrs: linux does not allow user.* xattrs on symlinks
2018-11-16 23:15:04 +01:00
Thomas Waldmann
53971e8e79
xattr key names must start with user. on linux
...
... or the call will just error with "operation not supported"
2018-11-16 23:15:04 +01:00
Thomas Waldmann
d0a01c532e
pytest4 complains if we directly call the fixture function, fixes #4172
...
just added a normal function with the code, call it from fixture and
also from unittest test method.
2018-11-16 01:30:31 +01:00
ashmodei
f5bb776e77
Fixed wrong an archive's name pattern in CRUD benchmark help.
2018-11-12 17:01:47 +03:00
TW
b18122d596
Merge pull request #4164 from motwok/platform-refactor
...
remove posix issues and add fixups for unsupported methods. (ex. #4154 )
2018-11-11 14:25:30 +01:00
Emmo Emminghaus
e5c22eac0d
remove accidental change
2018-11-10 23:39:28 +01:00
Emmo Emminghaus
733a2bfa30
Introduce borg.platformflags.is_<os>
2018-11-10 23:34:43 +01:00
Emmo Emminghaus
973921df5a
remove unneded code and remarks, added needed except clause
2018-11-10 21:56:39 +01:00
Emmo Emminghaus
558ca61d20
remove posix issues and fixup for unsupported methodes
2018-11-10 21:48:46 +01:00
Emmo Emminghaus
b997d5ba5b
move code from borg.helpers.usergroup to borg.platform.posix
2018-11-10 21:43:45 +01:00
Ashmodei
6ca926d3bd
Added PATH::archive output for creation function on info log level. ( #4157 )
...
added repo::archive output for creation function on info log level, fixes #3561
2018-11-08 18:15:08 +01:00
motwok
78a3f2475e
Basic MSC Compatibility ( #4147 )
...
MSC Compatibility (Native Compile on Windows)
2018-11-03 18:52:54 +01:00
TW
08a03126b7
Merge pull request #4127 from motwok/master
...
c code portability fixes: issue #2677 and 2 more
2018-11-02 20:13:20 +01:00
Emmo Emminghaus
b2c3bc4d9e
removing accidental change
2018-11-02 14:10:23 +01:00
step21
19c269cdcf
Fixed link to cachedir spec in fs helper to address #4140
2018-10-31 14:05:49 +01:00
step21
0c99aee724
Fixed link to cachedir spec in docs to address #4140
2018-10-31 13:57:08 +01:00
step21
0d26ad3661
Explicitly convert environment variable to str to address #4136
2018-10-31 09:41:02 +01:00
step21
47490c79be
Moving the flags of the compiled regex to the front to fix #4137
2018-10-31 07:56:16 +01:00
motwok
6fde90b7f8
Merge pull request #1 from borgbackup/master
...
Update form upstream to fork
2018-10-29 21:39:01 +01:00
Thomas Waldmann
64a53ba43a
fixup: the help text is parsed as rst markup, so a lone * is an error
...
* and ** are interpreted as emphasis and need to be matched for begin
and end of emphasis. the \ in front of it is to get a non-markup *.
2018-10-29 13:53:40 +01:00
Thomas Waldmann
5c66a60f79
flake8: fix W605 (invalid escape sequences)
2018-10-29 12:36:07 +01:00
Thomas Waldmann
10cdadb2f8
flake8: fix F841
2018-10-29 12:36:03 +01:00
Emmo Emminghaus
718abfd6f8
cleanup void * in _hashindex.c (2nd)
2018-10-27 17:45:10 +02:00
Emmo Emminghaus
9d1276af04
cleanup void * in _hashindex.c
2018-10-27 17:34:25 +02:00
Emmo Emminghaus
f8ef6af454
hashindex: clean void* arithmetic up #2677
...
lowlevel: clean void* arithmetic up
unpack: repalce nonstandard false with 0
2018-10-24 21:40:05 +02:00
Manu
93b968cc35
Add argument storage_quota to forced_result. Avoids override by client.
2018-10-02 17:28:29 +08:00
Łukasz Stelmach
548355125e
read a passphrase from a file descriptor
...
Read a passpharase from a file descriptor specified in the
BORG_PASSPHRASE_FD environment variable.
2018-09-21 09:11:39 +02:00
Henry-Joseph Audéoud
b66533170a
Forward the format_spec to datetime class
...
If specified, the argument `format_spec` is forwarded from the method
`OutputTimestamp.__format__` to the method `format_time` method. Thus,
we are able to specify the format, in a way supported by the class
`datetime`.
The default behaviour of `format_time` is not affected. The other parts
of code that does not provide a `format_spec` are not affected by the
change.
2018-08-29 14:00:57 +02:00
TW
708a65a0b5
Merge pull request #4022 from ThomasWaldmann/finding-pieces-master
...
some more debug commands (master forward port)
2018-08-09 09:43:57 +02:00
Thomas Waldmann
eebc33a281
dump-repo-objs: filename layout improvements
...
(cherry picked from commit 24812b0317 )
2018-08-09 08:29:46 +02:00
Thomas Waldmann
d6cb39a6d6
implement borg debug dump-repo-objs --ghost
...
intended as a last resort measure to export all segment file contents
in a relatively easy to use format.
if you want to dig into a damaged repo (e.g. missing segment files,
missing commits) and you know what you do.
note: dump-repo-objs --ghost must not use repo.list()
because this would need the repo index and call get_transaction_id and
check_transaction methods, which can easily fail on a damaged repo.
thus we use the same low level scan method as we use anyway to get
some encrypted piece of data to setup the decryption "key".
(cherry picked from commit 8738e85967 )
2018-08-09 08:29:34 +02:00
Thomas Waldmann
a3a15ddf57
use repository.scan() for dump-repo-objs to get on-disk order
...
it is also more efficient, avoids random access.
(cherry picked from commit 2b7d65b024 )
2018-08-09 08:29:24 +02:00
Thomas Waldmann
9445b00408
implement borg debug search-repo-objs searchterm
...
(cherry picked from commit c2ed0d9ee0 )
2018-08-09 08:29:11 +02:00