Commit Graph

5910 Commits

Author SHA1 Message Date
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
TW 57843f3f52
Create FUNDING.yml 2020-06-29 01:14:20 +02:00
Thalian f096656438 docs: clarify how exclude options work in recreate, #5193
fixes #5193
2020-06-28 15:40:28 +02:00
TW 7033d5054f
Merge pull request #5226 from ThomasWaldmann/server-enforces-umask
--umask is for the local borg process only, fixes #4947
2020-06-28 14:58:41 +02:00
Benedikt Seidl 6a1f31bf29
[DOCS] Add socat pull mode (#5150)
docs: describe socat pull mode, fixes #900

also: fix sphinx deprecation warning

borg/docs/conf.py:114: RemovedInSphinx40Warning: The app.add_stylesheet() is deprecated. Please use app.add_css_file() instead.
2020-06-23 02:09:35 +02:00
TW e351eedd87
Merge pull request #5140 from fantasya-pbem/docs/2088_Move-resources
[DOCS] Move content of resources doc page to community project, #2088
2020-06-20 01:04:02 +02:00
TW 8e846935a2
Merge pull request #5201 from strager/import-to-key-file
allow key-import+BORG_KEY_FILE to create key files
2020-06-20 00:32:09 +02:00
TW a8c262f3c1
Merge pull request #5227 from ThomasWaldmann/fix-4911
hardlinked CACHEDIR.TAG issue
2020-06-20 00:29:56 +02:00
Thomas Waldmann d2536de4ee fix hardlinked CACHEDIR.TAG processing, fixes #4911 2020-06-14 22:00:02 +02:00
Thomas Waldmann 29731401b5 add test for hardlinked CACHEDIR.TAG issue #4911 2020-06-14 20:36:47 +02:00
Thomas Waldmann c531901763 --umask is for the local borg process only, fixes #4947
The umask value is NOT transmitted from client to server any more,
so the borg client can not influence the borg server umask any more.

If one wants to have a specific umask on the server side, one needs to
use a ssh forced command in .ssh/authorized_keys file.

OTOH, as the default value is 077 (in general, for client as well as for
the server) and the server does not take the value from the client any more,
there usually should be no need to give it on the server side, IF you are
happy with the default value.
2020-06-14 18:35:03 +02:00
TW 23f4a7d874
Merge pull request #5224 from ThomasWaldmann/read-special-part-files-mode
--read-special: .part files also should be regular files, fixes #5217
2020-06-14 16:39:20 +02:00