Commit graph

3022 commits

Author SHA1 Message Date
Thomas Waldmann
a5bfeddffe remote: deal with partial lines, fixes #2637
due to block buffering (in borg, pipes, sshd, ssh) partial lines might
be received. for plain text, this causes cosmetic issues.

the code now makes sure handle_remote_line() only gets called with a
complete line (which is terminated by any universal newline char, a
pure \r seems to be needed for remote progress displays).

it also fixes a yet undiscovered partial utf-8-sequence decoding issue
that might occur for the same reason.

(cherry picked from commit f2b48cd5c8)
2017-09-30 02:41:15 +02:00
TW
afbd7e373c Merge pull request #3064 from ThomasWaldmann/rate-limit-faq-fix-1.0
Simplified rate limiting wrapper in FAQ (1.0-maint)
2017-09-26 23:57:12 +02:00
Alexander Meshcheryakov
61f0acd93b Simplified rate limiting wrapper in FAQ
Exporting $RATE as environment variable is not need in this case.

And example does not use any bash specific features.
It should use default system shell instead.

(cherry picked from commit d3533de5f7)
2017-09-26 23:55:25 +02:00
TW
81b058ab35 Merge pull request #3053 from ThomasWaldmann/update-docs-1.0
doc updates (1.0-maint)
2017-09-23 22:23:35 +02:00
Thomas Waldmann
9243293dff docs: twitter account @borgbackup, fixes #2948
(cherry picked from commit 055f34f025)
2017-09-23 22:17:24 +02:00
Thomas Waldmann
3e49a0d0d8 docs: add note about metadata dedup and --no[ac]time, fixes #2518
(cherry picked from commit eacea02d8c)
2017-09-23 22:17:21 +02:00
Thomas Waldmann
5007e3fbb4 docs: change-passphrase only changes the passphrase, fixes #2990
(cherry picked from commit b6abee4d68)
2017-09-23 22:17:18 +02:00
TW
64b3c0fa10 Merge pull request #3045 from ThomasWaldmann/vagrant-updates-1.0
vagrant updates (1.0-maint)
2017-09-22 05:35:54 +02:00
Thomas Waldmann
f919339219 upgrade to FUSE for macOS 3.7.1
(cherry picked from commit ca34a33e7d)
2017-09-22 05:18:51 +02:00
Thomas Waldmann
4e5b06a179 use python 3.5.4 to build the binaries
(cherry picked from commit 3f6c14e854)
2017-09-22 05:18:44 +02:00
TW
f45f9fcb64 Merge pull request #3023 from ThomasWaldmann/fix-2994-1.0
Fix #2994 (1.0-maint)
2017-09-15 00:15:12 +02:00
Thomas Waldmann
9529895ed4 get rid of datetime.isoformat to avoid bugs like #2994
(cherry picked from commit da2f8dbe81)
2017-09-10 05:58:03 +02:00
Thomas Waldmann
9c3bae46e0 use safe parse_timestamp to parse timestamps, fixes #2994
also: refactor so it is possible to get tz-unaware datetime
objects from parse_timestamp.

(cherry picked from commit a9aa3c5f34)
2017-09-10 05:41:08 +02:00
Thomas Waldmann
da30e54fc4 use ISO_FORMAT* constants
(cherry picked from commit 457f5ceb30)
2017-09-10 05:27:59 +02:00
Thomas Waldmann
909c68a0d7 add ISO_FORMAT* constants to helpers module
no constants module here, so put it into helpers.
2017-09-10 05:17:40 +02:00
TW
1c6b38a0b4 Merge pull request #3004 from ThomasWaldmann/fd-cache-invalidation-1.0
FD cache invalidation (1.0-maint)
2017-09-07 21:38:37 +02:00
Thomas Waldmann
2798af3232 repo cleanup/write: invalidate cached FDs
(cherry picked from commit 88e1340445)
2017-09-07 16:49:32 +02:00
Thomas Waldmann
90fdfd26d8 repository: test FD invalidation 2017-09-06 15:17:05 +02:00
TW
226062b9c8 Merge pull request #2984 from enkore/issue/2976-1.0
1.0 backport #2980 keymanager: don't depend on optional readline module
2017-08-30 23:16:19 +02:00
Marian Beermann
aa30be296b keymanager: don't depend on optional readline module
(cherry picked from commit b8793d9577)
2017-08-30 11:29:32 +02:00
TW
faa681ed06 Merge pull request #2971 from ThomasWaldmann/fix-timestamp-option-1.0
borg create --timestamp: set start time, fixes #2957
2017-08-27 20:46:06 +02:00
TW
4a4e2abfcb Merge pull request #2972 from ThomasWaldmann/issue/2949-1.0
create: document exclusion through nodump
2017-08-27 20:45:46 +02:00
Marian Beermann
3b53823cbe create: document exclusion through nodump
(cherry picked from commit 495f838d88)
2017-08-27 15:42:45 +02:00
Thomas Waldmann
1d52b592cf borg create --timestamp: set start time, fixes #2957
(cherry picked from commit ac404e3a74)
2017-08-27 15:26:32 +02:00
TW
ab640a706c Merge pull request #2969 from ThomasWaldmann/no-threadlocal-1.0
Buffer: fix wrong thread-local storage use (#2951)
2017-08-27 14:49:30 +02:00
enkore
1163cb5179 Buffer: fix wrong thread-local storage use (#2951)
Buffer: delete support for multiple threads

Thread-local objects are a fairly complex footgun, so avoid them in
the first place. When a Compressor uses a Buffer (for example),
just create multiple Compressor instances for each thread, owned by
each thread. Minimize multiple ownership of objects across
threads if at all possible!

(cherry picked from commit f7ed5d7220)
2017-08-25 05:12:52 +02:00
TW
349dc2fe29 Merge pull request #2941 from ThomasWaldmann/workaround-files-cache-corruption-1.0
ignore corrupt files cache, fixes #2939
2017-08-19 01:04:49 +02:00
Thomas Waldmann
5beaa5bd02 ignore corrupt files cache, fixes #2939
ignore the files cache when corrupt and emit a warning message
so the users notices that there is a problem.
2017-08-19 01:03:38 +02:00
TW
edda2e6989 Merge pull request #2932 from ThomasWaldmann/migrate-locks-1.0
migrate locks to child PID when daemonize is used
2017-08-14 17:52:28 +02:00
Thomas Waldmann
230e0feac6 migrate locks to child PID when daemonize is used
(cherry picked from commit 09e3a02fbc)
2017-08-14 00:25:51 +02:00
TW
1d8d1d8e8f Merge pull request #2922 from ThomasWaldmann/fix-serve-exitcode-1.0
fix exitcode of borg serve, fixes #2910
2017-08-07 05:31:18 +02:00
Thomas Waldmann
3a7f0fea69 fix exitcode of borg serve, fixes #2910
(cherry picked from commit 583de3eeb1)
2017-08-06 17:38:04 +02:00
TW
d68d7ac5da Merge pull request #2907 from ThomasWaldmann/vagrant-fixes-1.0
backported vagrant-fixes for 1.0-maint
2017-08-03 04:59:26 +02:00
TW
2134a84895 Merge pull request #2908 from ThomasWaldmann/hash_modulo_speedup-1.0
replace modulo with if to check for wraparound in hashmap
2017-08-03 04:59:07 +02:00
Radu Ciorba
2cdd4353b6 replace modulo with if to check for wraparound in hashmap
Integer division is slow, and this improves the speed of all operations on the hashmap.

Benchmarked this patch on the rciorba/master-bench branch:
9e5d61e03c/results.html

(cherry picked from commit 12e0f55991)
2017-08-01 06:01:03 +02:00
Thomas Waldmann
a07b771662 vagrant: netbsd: bash is already installed
(cherry picked from commit 4e40f8507d)
2017-08-01 04:49:37 +02:00
Thomas Waldmann
a01d595c85 vagrant: fix netbsd version in PKG_PATH
the VM is using netbsd 7.0.1, likely updating the version in the
PKG_PATH was forgotten when the machine itself was upgraded to a newer
version. it became visible now as the 6.1.5 stuff vanished from the
ftp server.

also: remove trailing /
(cherry picked from commit 1f5eba0cb8)
2017-08-01 04:49:24 +02:00
Thomas Waldmann
0416bfdc5a vagrant: add exe location to PATH when we build an exe
(cherry picked from commit c1f9ed991b)
2017-08-01 04:49:04 +02:00
TW
39f876229f Merge pull request #2847 from borgbackup/rel1011
release 1.0.11
2017-07-21 03:51:39 +02:00
Thomas Waldmann
4367b568ab python setup.py build_usage 2017-07-21 00:50:50 +02:00
Thomas Waldmann
1ece129ec9 set release date in changelog 2017-07-21 00:45:10 +02:00
TW
c89463add7 Merge pull request #2801 from ThomasWaldmann/update-changes-1.0
Update CHANGES (1.0-maint)
2017-07-21 00:41:41 +02:00
Thomas Waldmann
f4e9f05e4a update CHANGES (1.0-maint) 2017-07-21 00:40:35 +02:00
TW
81b1442268 Merge pull request #2843 from ThomasWaldmann/checkpoint-interval
change --checkpoint-interval default from 600s to 1800s, fixes #2841
2017-07-19 15:54:36 +02:00
TW
68409aa10c Merge pull request #2827 from milkey-mouse/backports7
Backports (7)
2017-07-19 01:59:18 +02:00
Thomas Waldmann
f25e3177e9 change --checkpoint-interval default from 600s to 1800s, fixes #2841
a user was (rightfully) complaining that borg does a whole lot of
writing to .cache and was also quite inefficient because that took
rather long and occurred too frequently.

this was caused by big indexes/caches and the relatively high default
checkpoint frequency (every 300s) in 1.0.

we already have increased that value to 1800s in master (which soon will
be 1.1), so this changeset just does the same for 1.0.x.
2017-07-19 01:08:08 +02:00
Antonio Larrosa
f0cbf3f257 Fix openSUSE command and add openSUSE section
Fix the name of the borgbackup package in openSUSE and
add an openSUSE section on how to install development dependencies
to build borgbackup from sources.

(cherry picked from commit 6c7b9a338c)
2017-07-16 12:36:04 -07:00
Marian Beermann
a93f636151 archiver: add test for paperkey import, fix bug
(cherry picked from commit 78f0e5d473)
2017-07-16 12:36:04 -07:00
TW
d0203a237d use limited unpacker for outer key, fixes #2174 (#2790)
* use limited unpacker for outer key, fixes #2174

* fixup: higher inner key data size limit

(cherry picked from commit 9ca666907b)
2017-07-16 12:36:03 -07:00
Marian Beermann
6990beb69e xattr: test split_lstring
(cherry picked from commit 6c67b64ab6)
2017-07-16 12:36:03 -07:00