1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 01:37:20 +00:00
Commit graph

5921 commits

Author SHA1 Message Date
TW
d050b70130
Merge pull request #5345 from ThomasWaldmann/drop-py35
drop python 3.5, fixes #5344
2020-09-26 00:37:38 +02:00
Aleksey Korol
aef5e89126
Add ssh-agent pull backup method to doc (#5288)
deployment docs: add ssh-agent pull backup method

Co-authored-by: Король Алексей <a.korol@npp-crts.ru> (main work)
Co-authored-by: Thomas Waldmann <tw@waldmann-edv.de>
2020-09-25 14:20:29 +02:00
Thomas Waldmann
1a8f5d27ab drop python 3.5, fixes #5344
py35 is EOL.
2020-09-25 02:13:43 +02:00
TW
05b965dbfd
Merge pull request #5302 from m3nu/issue/5185/macos-folder-bin
Build directory-based binary for macOS to avoid Gatekeeper delays.
2020-09-23 13:25:32 +02:00
TW
47446f2043
Merge pull request #5330 from ThomasWaldmann/better-error-msg-large-archive
prettier error message when archive gets too big, fixes #5307
2020-09-22 12:22:29 +02:00
TW
f928747ff7
Merge pull request #5329 from ThomasWaldmann/fix-recover-segment-master
check --repair: fix potential data loss (master)
2020-09-08 21:28:02 +02:00
Thomas Waldmann
0839ac3034 prettier error message when archive gets too big, fixes #5307 2020-09-08 21:00:27 +02:00
Thomas Waldmann
bf8706b741 fixup: invert nesting of context managers
cleaner teardown of contexts:

close mmap, close src_fd (reading), close dst_fd (and rename)

maybe it was not a real problem to rename a still open-for-reading / mmapped file,
but in any case it is cleaner like now.
2020-09-08 18:26:03 +02:00
Thomas Waldmann
b198160257 check --repair: fix potential data loss, fixes #5325
We already have used SaveFile context manager since long at other places.
By using it, the original segment file stays in place until recovery of it
is completed (writing/syncing into *.tmp).
On successful completion, .tmp is renamed over original + dir syncing.
If aborted by some exception, including Ctrl-C, the original file is unmodified.
2020-09-08 18:25:36 +02:00
Manu
b023610c8c Build directory-based binary for macOS to avoid Gatekeeper delays. 2020-09-08 12:31:47 +08:00
TW
e70e49f47e
Merge pull request #5323 from nod0n/patch-1
fix typo
2020-09-03 18:04:38 +02:00
nod0n
c8efc4a944
fix typo 2020-09-03 17:12:54 +02:00
TW
1860a33101
Merge pull request #5309 from dysnix/docs-prune-add-double-force
Update prune docs to mention double force
2020-08-25 21:11:45 +02:00
Alex Vorona
6fac203d86 add double force 2020-08-25 21:27:18 +03:00
TW
d2a4b84dd3
Merge pull request #5304 from m3nu/issue/5185/add-brew-core
Update Homebrew install instructions. See #5185
2020-08-18 20:48:18 +02:00
Manu
e632f2659e Update Homebrew install instructions. See #5185 2020-08-18 23:55:37 +08:00
TW
38c2380281
Merge pull request #5298 from ThomasWaldmann/2020
it's 2020
2020-08-13 22:08:33 +02:00
Thomas Waldmann
45780d87b1 it's 2020 2020-08-13 22:07:02 +02:00
TW
e15f754451
Merge pull request #5280 from viq/patch-1
[Docs] Notes about borg cache workaround
2020-08-03 23:19:24 +02:00
viq
e00ffabd10
Better description of how cache and rebuilds of it work
and how the workaround applies to that
2020-08-03 22:35:23 +02:00
SanskritFritz
8b30a76ae2
Support repositories in fish tab completion (#5256)
support repositories and ssh hosts in fish tab completion
2020-07-31 16:17:30 +02:00
TW
9d96d78d19
Merge pull request #5266 from fantasya-pbem/docs/5165_recreate-list-item-flags_master
docs: point to borg create --list item flags in recreate usage, fixes #5165
2020-07-30 12:12:17 +02:00
Thalian
78396bfc23 docs: point to borg create --list item flags in recreate usage, fixes #5165 2020-07-30 07:39:33 +02:00
TW
23528954c5
Merge pull request #5276 from pgerber/false
Stop relying on `false` exiting with status code 1
2020-07-29 14:50:28 +02:00
Peter Gerber
97f84a6cb2 Stop relying on false exiting with status code 1
According to the manpage, it's only guaranteed to return with
an exit code indicating an error. However, the manpage is silent
on the exact code returned.

Likely fixes #5273.
2020-07-29 06:12:08 +00:00
TW
85e6c0afd8
Merge pull request #5263 from ThomasWaldmann/persist-shadow-index
persist shadow_index in between borg runs, fixes #4830
2020-07-28 22:52:58 +02:00
Thomas Waldmann
7bfa766192 persist shadow_index in between borg runs, fixes #4830
in borg 1.1, compact_segments() was always run directly after some repo writing
operation (in same borg process). but now, only "borg compact" is used to compact
segments and it is a separate borg invocation (new process), so we need to persist
the shadow_index so we do not lose that information.
2020-07-28 21:15:56 +02:00
Thomas Waldmann
9bf030ef2c add a test for hints persistence and behaviour, see #4830 2020-07-28 21:15:31 +02:00
TW
5ebde5cebc
Merge pull request #5272 from ThomasWaldmann/fix-locking-openindiana
fix locking on openindiana, fixes #5271
2020-07-26 18:17:54 +02:00
Thomas Waldmann
220d890f32 fix locking on openindiana, fixes #5271
OI rmdir gives errno 17 EEXIST when trying to remove a non-empty dir,
not ENOTEMPTY like other OSes.

Also: fix one error handler to also use a tuple-member check instead of "or".
2020-07-26 15:25:26 +02:00
TW
fcc71ffab0
Merge pull request #5255 from oxiedi/better-zsh-completion
Rewrite zsh completion.
2020-07-26 10:39:54 +02:00
oxiedi
9afad44894 don't complete $BORG_RECREATE_I_KNOW_WHAT_I_AM_DOING 2020-07-26 07:43:20 +05:00
TW
87ee4f1d80
Merge pull request #5267 from fantasya-pbem/docs/5180_stdin-and-caching_master
docs: add a note to create from stdin regarding files cache, fixes #5180
2020-07-25 21:04:17 +02:00
Thalian
528e507d21 docs: add a note to create from stdin regarding files cache, fixes #5180 2020-07-25 20:10:29 +02:00
TW
fc51522638
Merge pull request #5258 from fantasya-pbem/master
docs: add security faq explaining AES-CTR crypto issues, fixes #5254
2020-07-25 12:23:07 +02:00
Thalian
668a136794 docs: add security faq explaining AES-CTR crypto issues, fixes #5254 2020-07-25 12:12:32 +02:00
oxiedi
2b869256a2 Rewrite Zsh completion.
The new completion provides:

  - completion for almost all optional and positional arguments;
  - completion for Borg environment variables (parameters).
2020-07-24 22:52:50 +05:00
TW
303c11f245
rephrase some warnings, fixes #5164 (#5241)
rephrase some warnings, fixes #5164

borg check --repair and borg recreate are now present in the code since rather long, so they are not experimental any more.

borg recreate might be used wrongly (e.g. accidentally excluding everything / not matching anything when recreating an archive). added some warning words in the docs, but it will not ask for confirmation any more.

borg check: there might be kinds of corruption borg check --repair can not fix and it might make things even worse while trying to fix. so this will still ask for confirmation, just with different wording.
2020-07-10 19:26:18 +02:00
TW
9b8ba5f6f7
Merge pull request #4954 from alfredo08154711/issue-lockmigr
Fixed lock migration, issue #4953
2020-07-10 00:44:04 +02:00
Thomas Portmann
ef9fdcf992 fix race condition in lock migration, fixes #4953
- add a daemonizing() ctx manager

The foreground borg mount process (local repo) survives until the lock
migration (performed by the background) is finished, so the lock to be
migrated is never stale, and the race condition is gone.

- add a test case revealing that locking is not safe during daemonization (borg mount)

- amend printing in testsuite.archiver
2020-07-09 21:31:13 +02:00
TW
82542f286c
Merge pull request #5247 from ThomasWaldmann/blackwhite
use allow/deny list wording
2020-07-09 15:29:59 +02:00
Thomas Waldmann
264c799c50 use allow/deny list wording 2020-07-07 23:01:55 +02:00
TW
ca75f08c14
Merge pull request #5246 from ThomasWaldmann/sizeof_fmt
sizeof_fmt
2020-07-06 22:58:35 +02:00
Thomas Waldmann
87e3b699c0 revert 0-formatting to be compatible with previous behaviour
as we format differences (growing/shrinking) we want:
-N  # negative / shrinking
 0  # no change -> no +/- sign here!
+N  # positive / growing
2020-07-06 19:47:15 +02:00
Dark Dragon
831448684c Improve sizeof_fmt()
- Use built-in sign handling
- Format integer correctly when using biggest unit
- Use consistent format inside and outside of loop
2020-07-06 19:42:36 +02:00
Thomas Portmann
dfc5e915cc
Fixed locking, issue #4923 (#4928)
locking: fix ExclusiveLock race condition bug, fixes #4923

- ExclusiveLock is now based on os.rename instead of os.mkdir.
- catch FileNotFoundError observed under race condition in ExclusiveLock.release()
  and .kill_stale_lock()
- added TestExclusiveLock.test_race_condition() which reveals issue #4923
- updated docs
- locking: use "raise LockTimeout from None" for prettier traceback

Co-authored-by: Thomas Portmann <thomas@portmann.org>
Co-authored-by: Thomas Waldmann <tw@waldmann-edv.de>
2020-07-03 10:09:32 +02:00
TW
f2f8692f86
Merge pull request #5242 from ThomasWaldmann/fix-rc-on-signal
exit with 128 + signal number, fixes #5161
2020-07-01 18:55:41 +02:00
Thomas Waldmann
e0545e921d exit with 128 + signal number, fixes #5161
as documented:

https://borgbackup.readthedocs.io/en/stable/usage/general.html#return-codes

compatibility warning: in case you have scripts expecting rc == 2 for a
signal exit, you need to update them to check for >= 128.
2020-06-30 00:17:10 +02:00
TW
5b5bd9f7f2
Merge pull request #5238 from fantasya-pbem/docs/5193_Recreate-exclude-if-present
docs: clarify --exclude-if-present in recreate, #5193
2020-06-29 21:18:12 +02:00
TW
2ea3878234
Update FUNDING.yml 2020-06-29 01:28:23 +02:00