1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00
Commit graph

1622 commits

Author SHA1 Message Date
Jakob Schnitzer
17952dff48 helpers: remove functions that are only used once
The read_msgpack and write_msgpack functions were only used in one place
each.  Since msgpack is read and written in lots of places, having
functions with these generic names is confusing. Also, the helpers
module is quite a mess, so reducing its size seems to be a good idea.
2015-12-07 14:29:01 +01:00
TW
689e40c398 Merge pull request #470 from DanielDent/patch-1
Load over SSL (avoids mixed content)
2015-12-07 03:27:28 +01:00
Daniel Dent
8c91923fb5 Load over SSL (avoids mixed content) 2015-12-06 18:08:32 -08:00
TW
2e5baa6ec2 Merge pull request #459 from ThomasWaldmann/increase-rpc-api-version
increase rpc protocol version to 2, fixes #458
2015-12-03 21:16:11 +01:00
Thomas Waldmann
6d083c0695 increase rpc protocol version to 2
this is needed because due to the locking improvements, some rpc calls' signature changed slightly.
2015-12-03 17:50:37 +01:00
Thomas Waldmann
1f8b64cc1f readme: add note about clientside encryption 2015-12-03 17:35:52 +01:00
TW
19f0b16d4d Merge pull request #457 from ThomasWaldmann/docs-add-resources
docs: add resources, fixes #149
2015-12-03 17:14:49 +01:00
Thomas Waldmann
f1f2e78ced docs: move related projects to resources section 2015-12-03 17:13:39 +01:00
Thomas Waldmann
b0975a75b5 docs: add resources section, with videos, talks, presentations 2015-12-03 16:58:48 +01:00
TW
f5634092a2 Merge pull request #455 from ThomasWaldmann/add-progress-indication
Add progress indication, fixes #394
2015-12-03 15:04:44 +01:00
Thomas Waldmann
df24ce5acd progress indicators: add tests 2015-12-03 14:45:16 +01:00
Thomas Waldmann
887196b00e progress indicators: better docstring, minor code improvement 2015-12-03 14:14:28 +01:00
TW
9005586ca4 Merge pull request #452 from ThomasWaldmann/hashtable
misc. hash table tuning
2015-12-02 16:45:39 +01:00
TW
10bf6fdd88 Merge pull request #456 from skorokithakis/master
Display proper repo URL.
2015-12-02 16:42:54 +01:00
Stavros Korokithakis
d572ceaca2 Display proper repo URL. 2015-12-02 16:51:49 +02:00
Thomas Waldmann
fe6916bd22 refactor upgrade progress indication code to use ProgressIndicatorPercent 2015-12-02 01:26:26 +01:00
Thomas Waldmann
7a1316cb79 implement ProgressIndicators, use it for repo check and segment replay, fixes #195, fixes #188 2015-12-02 01:06:07 +01:00
TW
fffdb59c71 Merge pull request #454 from skorokithakis/master
Clarify encryption.
2015-12-02 00:53:59 +01:00
Stavros Korokithakis
e6d3720d9b Clarify encryption. 2015-12-02 01:48:08 +02:00
TW
9dc18f4b7c Merge pull request #453 from N-006/patch-1
Borg moved to Arch Linux [community]
2015-12-01 23:37:57 +01:00
Vlad
5280c0830e Borg moved to Arch Linux [community] 2015-12-02 00:16:25 +02:00
Thomas Waldmann
610300c1ce misc. hash table tuning
BUCKET_UPPER_LIMIT: 90% load degrades hash table performance severely,
so I lowered that to 75% (which is a usual value - java uses 75%, python uses 66%).
I chose the higher value of both because we also should not consume too much
memory, considering the RAM usage already is rather high.

MIN_BUCKETS: I can't explain why, but benchmarks showed that choosing 2^N as
table size severely degrades performance (by 3 orders of magnitude!). So a prime
start value improves this a lot, even if we later still use the grow-by-2x algorithm.

hashindex_resize: removed the hashindex_get() call as we already know that the values
come at key + key_size address.

hashindex_init: do not calloc X*Y elements of size 1, but rather X elements of size Y.
Makes the code simpler, not sure if it affects performance.

The tests needed fixing as the resulting hashtable blob is now of course different due
to the above changes, so its sha hash changed.
2015-12-01 21:18:58 +01:00
TW
d1377e5e15 Merge pull request #445 from anarcat/status-bug
add test for the weird unchanged file status
2015-11-24 18:04:09 +01:00
Thomas Waldmann
a8227aeda0 update CHANGES 2015-11-24 17:38:12 +01:00
Antoine Beaupré
48bb4c326d cross-reference the status oddity in the usage 2015-11-23 19:48:33 -05:00
Antoine Beaupré
af7b17960e clarify documentation on the A status oddity 2015-11-23 19:44:54 -05:00
Antoine Beaupré
a75d77226b add test for the weird unchanged file status
this tests the behaviour found in #403 and documented in #418, but doesn't fail on the unexpected A
2015-11-23 19:44:54 -05:00
TW
f834e335f9 Merge pull request #437 from anarcat/no-progress
fix --no-progress
2015-11-23 18:48:45 +01:00
anarcat
2ac515a5f7 fix typos 2015-11-23 12:41:20 -05:00
Antoine Beaupré
0196d80b28 fix progress tests on travis
we now check if we really have a terminal before doing the fancy auto-detection testing
2015-11-22 21:24:37 -05:00
Thomas Waldmann
2b8b31bca5 update pytest-benchmark requirement
it's released now. \o/
2015-11-22 15:39:31 +01:00
TW
04f081fea7 Merge pull request #442 from ThomasWaldmann/fix-compiler-warnings
get rid of C compiler warnings, fixes #391
2015-11-22 14:15:24 +01:00
TW
faacd18244 Merge pull request #443 from ThomasWaldmann/tb-add-sysinfo
include system info below traceback, fixes #324
2015-11-22 14:09:07 +01:00
TW
3972269d6f Merge pull request #441 from ThomasWaldmann/break-lock
Break lock
2015-11-22 14:08:47 +01:00
TW
2d4a71a381 Merge pull request #439 from ThomasWaldmann/avoid-orphan-locks
Avoid orphan locks, see #285
2015-11-22 14:08:25 +01:00
TW
08346dd968 Merge pull request #438 from ThomasWaldmann/max-lock-wait
Max lock wait, fixes #210
2015-11-22 14:08:08 +01:00
Thomas Waldmann
adb35ab07f include system info below traceback, fixes #324 2015-11-21 22:51:59 +01:00
Thomas Waldmann
7247043db0 get rid of C compiler warnings, fixes #391 2015-11-21 22:08:30 +01:00
Thomas Waldmann
38994c78fc implement borg break-lock REPO command, fixes #157
due to borg's architecture, breaking the repo lock needs first creating a repository object.
this would usually try to get a lock and then block if there already is one.
thus I added a flag to open without trying to create a lock.
2015-11-21 20:50:53 +01:00
Thomas Waldmann
1093894be8 UpgradableLock: release exclusive lock in case of exceptions
also: add some comments about how to use the locks in the safest way
2015-11-21 16:53:33 +01:00
Thomas Waldmann
f19e95fcf7 implement --lock-wait, support timeout for UpgradableLock, fixes #210
also: simplify exceptions / exception handling
2015-11-21 15:34:51 +01:00
Thomas Waldmann
b3b4db427c rename print_info to print_verbose
better name as it is only outputting if verbose flag is set.
2015-11-21 02:26:50 +01:00
Thomas Waldmann
6abf7621c1 remove rarely used print_status method 2015-11-21 02:22:26 +01:00
Thomas Waldmann
25140e8c82 add --log-level to set the level of the builtin logging configuration, fixes #426 2015-11-21 02:09:16 +01:00
TW
e372dfb834 Merge pull request #422 from ThomasWaldmann/logging-config
configure logging via env var
2015-11-21 01:38:37 +01:00
Thomas Waldmann
c4dae52ca4 configure logging via env var, use LazyLogger
logging.raiseExceptions not needed any more for py >= 3.2
2015-11-21 01:14:07 +01:00
Antoine Beaupré
a6f8436ceb move toggle action to beginning of class so it can be reused 2015-11-20 15:03:46 -05:00
Antoine Beaupré
a40729f4f3 --progress option was backwards
adds unit tests and ensures we detect --progress correctly in all cases
2015-11-20 15:03:39 -05:00
TW
a7eb83efa5 Merge pull request #419 from anarcat/no-progress
add a --no-progress flag to forcibly disable progress info
2015-11-20 20:08:39 +01:00
TW
5dda00c923 Merge pull request #435 from ThomasWaldmann/rtd-improvements
style changes of previous changeset did not work on rtd, try 2
2015-11-20 19:34:12 +01:00