Copy command
Special case for the copy command section
The copy command needs two repositories (and quite likely 2 different set of keys). You can configure a copy section like this:
You will note that the secondary repository doesn’t need to have a 2 behind its flags (repository2, password-file2, etc.) nor it is prefixed by a from for the more recent version of restic (from-repo, from-password-file, etc.). It’s because the flags are well separated in the configuration and there’s no ambiguity.
Initialisation
If you want to initialize the copy repository using the copy-chunker-params flag, it needs to be called initialize-copy-chunker-params instead. As such, this flag does not exist on the copy target which is why we need to prefix it.
Copy only some snapshots
You can restrict the copy to only some snapshots using the snapshot option.
The snapshot parameter can be a snapshot ID or the latest keyword. You can use an array if multiple values are needed.