restic/doc
Wouter Horlings 9ccdba9df6 Add repositoryFile2 option
The `init` and `copy` commands can now use `--repository-file2` flag and
the `$RESTIC_REPOSITORY_FILE2` environment variable.

This also fixes the conflict with the `--repository-file` and `--repo2`
flag.

Tests are added for the initSecondaryGlobalOpts function.

This adds a NOK function to the test helper functions. This NOK tests if
err is not nil, and otherwise fail the test.

With the NOK function a couple of sad paths are tested in the
initSecondaryGlobalOpts function.

In total the tests checks wether the following are passed correct:
   - Password
   - PasswordFile
   - Repo
   - RepositoryFile

The following situation must return an error to pass the test:
   - no Repo or RepositoryFile defined
   - Repo and RepositoryFile defined both
2021-03-08 22:41:13 +01: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 2021-02-14 11:44:20 +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: Add restic install instructions for Alpine Linux 2020-10-11 18:31:07 +02:00
030_preparing_a_new_repo.rst docs: Fix typo in S3 URL support 2021-01-31 18:33:15 +01:00
040_backup.rst backup: Add --ignore-ctime option and document change detection 2021-01-28 23:42:10 +01:00
045_working_with_repos.rst Add repositoryFile2 option 2021-03-08 22:41:13 +01:00
050_restore.rst Some gramma fixes in documentation 2020-12-19 01:16:15 +03:00
060_forget.rst doc: Clarify calendar boundaries for --keep-* options 2020-12-15 12:43:06 +01:00
070_encryption.rst Update docs 2018-04-28 22:08:11 +02:00
075_scripting.rst Update docs 2018-04-28 22:08:11 +02:00
080_examples.rst doc: Clarify setcap applying only to current binary 2021-03-08 19:21:06 +01:00
090_participating.rst Remove -mod=vendor from all documentation and code 2020-03-01 19:32:35 +01:00
100_references.rst doc: Split references out into smaller files 2018-06-18 22:17:48 +02:00
110_talks.rst Update docs 2018-04-28 22:08:11 +02:00
bash-completion.sh Update manpages and auto-completion 2021-02-14 11:44:20 +01:00
cache.rst Systematize documentation of environment variables 2020-10-22 09:57:30 +02:00
conf.py Update docs 2018-04-28 22:08:11 +02:00
design.rst Update threat model 2021-01-28 14:20:42 +01:00
developer_information.rst docs: Properly reproduce zip archives for windows binaries 2020-10-05 18:24:46 +02:00
faq.rst Add FAQ on whether restic can resume backups 2020-10-03 21:39:45 +02:00
index.rst doc: Add developer information 2018-10-11 22:37:25 +02:00
Makefile Document the build and release processes 2018-10-13 13:48:03 +02:00
manual_rest.rst Add changelog entry 2020-12-29 16:32:18 +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 2021-02-14 11:44:20 +01:00