restic/changelog/unreleased
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
..
.gitignore Add gitignore to changelog/unreleased 2020-11-05 09:01:32 +01:00
issue-3214 Add link to pr to changelog 2021-02-28 00:40:52 +01:00
issue-3284 backup: Correctly handle --quiet flag 2021-02-15 22:14:58 +01:00
issue-3293 Add repositoryFile2 option 2021-03-08 22:41:13 +01:00
issue-3296 check: Fix crash of --read-data-subset=x% on empty repository 2021-02-27 16:05:36 +01:00
issue-3302 local: Ignore files in intermediate folders 2021-02-27 13:47:55 +01:00