1
0
mirror of https://github.com/restic/restic.git synced 2024-07-03 08:50:53 +02:00
restic/doc
jo ea59896bd6
Add a global option --retry-lock
Fixes restic#719

If the option is passed, restic will wait the specified duration of time
and retry locking the repo every 10 seconds (or more often if the total
timeout is relatively small).

- Play nice with json output
- Reduce wait time in lock tests
- Rework timeout last attempt
- Reduce test wait time to 0.1s
- Use exponential back off for the retry lock
- Don't pass gopts to lockRepo functions
- Use global variable for retry sleep setup
- Exit retry lock on cancel
- Better wording for flag help
- Reorder debug statement
- Refactor tests
- Lower max sleep time to 1m
- Test that we cancel/timeout in time
- Use non blocking sleep function
- Refactor into minDuration func

Co-authored-by: Julian Brost <julian@0x4a42.net>
2023-04-07 16:24:14 +02:00
..
_static docs: switch to gopher favicon 2020-02-13 00:09:37 +01:00
images/aws_s3 Update AWS S3 tutorial, fixing #1593 2018-01-29 20:47:27 +01:00
logo Update logo 2018-02-05 20:48:48 +01:00
man Update manpages and auto-completion 2023-01-12 20:51:19 +01:00
.gitignore Document the build and release processes 2018-10-13 13:48:03 +02:00
010_introduction.rst Update docs 2018-04-28 22:08:11 +02:00
020_installation.rst doc: Correct broken links 2023-03-22 17:37:58 +01:00
030_preparing_a_new_repo.rst doc: Correct broken links 2023-03-22 17:37:58 +01:00
040_backup.rst Merge pull request #4246 from greatroar/doc 2023-03-22 14:47:31 +01:00
045_working_with_repos.rst rewrite: fix link anchors in documentation 2022-11-27 16:38:10 +01:00
047_tuning_backup_parameters.rst doc: Correct heading level for --no-scan 2023-01-11 21:47:38 +01:00
050_restore.rst doc: add description for restore --sparse 2023-01-10 23:27:42 +01:00
060_forget.rst document backup --group-by 2023-02-11 00:55:11 +01:00
070_encryption.rst doc: Fix some links, focus less on implementation details 2023-03-13 00:23:15 +01:00
075_scripting.rst Update docs 2018-04-28 22:08:11 +02:00
080_examples.rst doc: specify AWS Region via AWS_DEFAULT_REGION 2022-05-02 21:26:58 +02:00
090_participating.rst doc: Fix some links, focus less on implementation details 2023-03-13 00:23:15 +01:00
100_references.rst doc: Split references out into smaller files 2018-06-18 22:17:48 +02:00
110_talks.rst doc: Correct broken links 2023-03-22 17:37:58 +01:00
bash-completion.sh Update manpages and auto-completion 2023-01-12 20:51:19 +01:00
cache.rst Wording: change repo to repository 2022-07-08 20:05:35 +02:00
conf.py doc: fix building with Sphinx 6 2023-03-12 11:45:26 +01:00
design.rst Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
developer_information.rst doc: Fix some links, focus less on implementation details 2023-03-13 00:23:15 +01:00
faq.rst remove duplicated init 2022-12-20 17:24:56 +01:00
fish-completion.fish Update manpages and auto-completion 2022-08-25 19:55:00 +02:00
index.rst Document connections and compression option 2022-07-03 11:19:24 +02:00
Makefile Document the build and release processes 2018-10-13 13:48:03 +02:00
manual_rest.rst Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
powershell-completion.ps1 Update manpages and auto-completion 2023-01-12 20:51:19 +01:00
requirements.txt Documentation: Refactor and switch to Sphinx 2017-04-17 20:53:38 +02:00
REST_backend.rst doc: Split references out into smaller files 2018-06-18 22:17:48 +02:00
test_irreducibility.gap chunker: Require a random irreducible polynomial 2015-04-05 22:52:43 +02:00
zsh-completion.zsh Update manpages and auto-completion 2022-08-25 19:55:00 +02:00