mirror of
https://github.com/restic/restic.git
synced 2025-12-16 00:42:46 +00:00
Merge pull request #3742 from MichaelEischer/from-repo
copy: replace --repo2 with --from-repo
This commit is contained in:
19
changelog/unreleased/pull-3742
Normal file
19
changelog/unreleased/pull-3742
Normal file
@@ -0,0 +1,19 @@
|
||||
Change: Replace `--repo2` option used by init/copy with `--from-repo`
|
||||
|
||||
The `init` and the `copy` command can read data from another repository.
|
||||
However, confusingly `--repo2` referred to the repository from which the
|
||||
`init` command copies parameters, but for the `copy` command `--repo2`
|
||||
referred to the copy destination.
|
||||
|
||||
We have introduced a new option `--from-repo` which always refers to the
|
||||
source repository for both commands. The old parameters names have been
|
||||
deprecated but still work. To create a new repository and copy all snapshots
|
||||
to it, the commands are now as follows:
|
||||
|
||||
```
|
||||
restic -r /srv/restic-repo-copy init --from-repo /srv/restic-repo --copy-chunker-params
|
||||
restic -r /srv/restic-repo-copy copy --from-repo /srv/restic-repo
|
||||
```
|
||||
|
||||
https://github.com/restic/restic/pull/3742
|
||||
https://forum.restic.net/t/restic-repository2-confusion/5017
|
||||
Reference in New Issue
Block a user