Commit graph

979 commits

Author SHA1 Message Date
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
Thomas Waldmann
12ebbf9038 files cache: update inode number, backport fix for #2226 2017-02-27 16:02:41 +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
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
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
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
Martin Hostettler
257e55f37e Add qr html export mode to key export command 2017-02-10 22:32:01 +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
Thomas Waldmann
add38e8cde ignore posix_fadvise errors in repository.py, work around #2095
note: we also ignore the call's return value in _chunker.c.

both is harmless as the call not working does not cause incorrect function,
just worse performance due to constant flooding of the cache (as if we
would not issue the call).
2017-01-28 22:38:25 +01:00
Thomas Waldmann
5a39d5c4f8 make LoggedIO.close_segment reentrant
if anything blows up in the middle of a (first) invocation of close_segment()
and an exception gets raised, it could happen that close_segment() gets called
again (e.g. in Repository.__del__ or elsewhere).

As the self._write_fd was set to None rather late, it would re-enter the if-block
then.

The new code gets the value of self._write_fd and also sets it to None in one tuple
assignment, so re-entrance does not happen.

Also, it uses try/finally to make sure the important parts (fd.close()) gets executed,
even if there are exceptions in the other parts.
2017-01-28 22:38:25 +01:00
TW
127250c400 Merge pull request #2102 from enkore/issue/2082
mount: umount on SIGINT/^C when in foreground
2017-01-28 15:14:22 +01:00
Marian Beermann
2cfaf03f84 mount: umount on SIGINT/^C when in foreground 2017-01-28 14:54:56 +01:00
TW
528891aee9 Merge pull request #2100 from ThomasWaldmann/fix-double-magic
creating a new segment: use "xb" mode, fixes #2099
2017-01-28 14:17:57 +01:00
Alexander 'Leo' Bergolth
a908599aa9 add two tests for the order of patterns and excludes 2017-01-26 16:31:31 +01:00
Thomas Waldmann
6996fa6dc0 creating a new segment: use "xb" mode, fixes #2099
"ab" seems to make no sense here (if there is already a (crap, but non-empty) segment file,
we would write a MAGIC right into the middle of the resulting file) and cause #2099.
2017-01-24 23:06:40 +01:00
TW
cf0192cdd3 Merge pull request #2094 from enkore/issue/2092
Fix invalid hard links
2017-01-24 22:54:18 +01:00
Marian Beermann
8fe047ec8d mount: handle invalid hard link refs 2017-01-24 14:33:07 +01:00
TW
b6191ececc Merge pull request #2096 from ThomasWaldmann/fix-use-after-close
SyncFile: fix use of fd object after close
2017-01-24 14:02:20 +01:00
Thomas Waldmann
fc8be58b63 SyncFile: fix use of fd object after close 2017-01-22 16:54:06 +01:00
Marian Beermann
d350e3a2e1 create: don't create hard link refs to failed files 2017-01-22 02:21:26 +01:00
Marian Beermann
fafd5e0399 hashindex: separate endian-dependent defs from endian detection
also make macro style consistent with other macros in the codebase.
2017-01-21 17:25:38 +01:00
Marian Beermann
90ae9076a4 hashindex: detect mingw byte order 2017-01-21 15:04:07 +01:00
TW
ca0c1dab11 Merge pull request #2015 from ThomasWaldmann/fix-location-regex
fix bad parsing of wrong syntax
2017-01-21 05:46:58 +01:00
Alexander 'Leo' Bergolth
2c10bf433c backport clean_lines() from master and use it instead of pattern_file_iter() 2017-01-16 16:04:44 +01:00
Thomas Waldmann
c0fb8da595 fix xattr test race condition, fixes #2047 2017-01-14 23:19:40 +01:00
enkore
82fd84e865 Merge pull request #2035 from ThomasWaldmann/docs-backup-from-stdin
borg create: document how to backup stdin, fixes #2013
2017-01-14 00:27:18 +01:00
enkore
a488d39245 Merge pull request #2034 from ThomasWaldmann/api-version-number-spacing
API_VERSION: use numberspaces, fixes #2023
2017-01-14 00:26:47 +01:00
Thomas Waldmann
022c1288e7 borg create: document how to backup stdin, fixes #2013 2017-01-13 21:49:06 +01:00
Thomas Waldmann
1c854b9f60 API_VERSION: use numberspaces, fixes #2023
like '<numberspace>_<version>', e.g. '1.0_01' for version 01 (used in 1.0 maintenance branch).

this avoids overlap and accidental collisions between different release branches.
2017-01-13 21:24:17 +01:00
Thomas Waldmann
941b8d7778 borg serve: fix transmission data loss of pipe writes, fixes #1268
This problem was found on cygwin/windows due to its small pipe buffer size of 64kiB.

Due to that, bigger (like >64kiB) writes are always only partially done and os.write() returns
the amount of data that was actually sent. the code previously did not use that return value
and assumed that always all is sent, which led to a loss of the remainder of transmission data
and usually some "unexpected RPC data format" error on the client side.

Neither Linux nor *BSD ever do partial writes on blocking pipes, unless interrupted by a
signal, in which case serve() would terminate.
2017-01-13 20:40:40 +01:00
Alexander 'Leo' Bergolth
58c3e0cd48 flake8 beautifications 2017-01-13 17:53:41 +01:00
Alexander 'Leo' Bergolth
7b668a1b50 - change argument parsing of pattern- and exclude-files:
patterns from such files are inserted in the order of appearance on the commandline now.
- allow specifying root paths for borg create and borg extract only by root patterns ("R path")
- adopt test cases and add some test cases for pattern argument parsing
2017-01-13 17:30:07 +01:00
Alexander 'Leo' Bergolth
ad421a7a41 cosmetic changes for TW 2017-01-13 11:00:16 +01:00
Marian Beermann
3c0a903e8a upgrade: fix incorrect title levels 2017-01-12 14:30:23 +01:00
Marian Beermann
2d2bff9bf6 remote: include unknown data in error message
this makes it far, far easier to diagnose issues like an account being
locked:

Got unexpected RPC data format from server:
This account is currently not available.
2017-01-12 03:18:35 +01:00
Marian Beermann
b6fa8629db remote: log SSH command line at debug level 2017-01-12 02:39:56 +01:00
TW
b206aa771c Merge pull request #2016 from ThomasWaldmann/fix-typos
fix typos
2017-01-12 02:27:13 +01:00
Thomas Waldmann
01090d2d40 fix typos
taken from debian package, thanks to danny edel and lintian for finding these.
2017-01-12 02:25:41 +01:00
enkore
53aaee3519 Merge pull request #2000 from enkore/issue/1997
check: fail if single archive does not exist
2017-01-12 02:08:38 +01:00
Marian Beermann
fe6b03a72d check: print non-exit-code warning if --last or --prefix aren't fulfilled 2017-01-12 02:04:44 +01:00
Thomas Waldmann
1667926c96 fix bad parsing of wrong syntax
this was like whack-a-mole: fix one regex -> another issue pops up
2017-01-12 01:01:24 +01:00
Alexander 'Leo' Bergolth
ead93b2e58 minor changes due to TWs review 2017-01-11 14:00:58 +01:00
Alexander 'Leo' Bergolth
7d27991071 fix parsing of root patterns on the commandline
some other cosmetic changes suggested by encore
2017-01-10 12:27:50 +01:00