mirror of
https://github.com/restic/restic.git
synced 2025-12-26 09:39:45 -05:00
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 |
||
|---|---|---|
| .. | ||
| _static | ||
| images/aws_s3 | ||
| logo | ||
| man | ||
| .gitignore | ||
| 010_introduction.rst | ||
| 020_installation.rst | ||
| 030_preparing_a_new_repo.rst | ||
| 040_backup.rst | ||
| 045_working_with_repos.rst | ||
| 050_restore.rst | ||
| 060_forget.rst | ||
| 070_encryption.rst | ||
| 075_scripting.rst | ||
| 080_examples.rst | ||
| 090_participating.rst | ||
| 100_references.rst | ||
| 110_talks.rst | ||
| bash-completion.sh | ||
| cache.rst | ||
| conf.py | ||
| design.rst | ||
| developer_information.rst | ||
| faq.rst | ||
| index.rst | ||
| Makefile | ||
| manual_rest.rst | ||
| requirements.txt | ||
| REST_backend.rst | ||
| test_irreducibility.gap | ||
| zsh-completion.zsh | ||