Studying the restic docs Working with repositories — restic 0.12.0 documentation, it appears to me that I initialize that second repository before I can do a copy to it.
But then I read about the deduplication problem Working with repositories — restic 0.12.0 documentation. The docs appear to clearly state and show that the target repository must be initialized so that the chunker parameters of the source repo are used.
I try to do that:
tomc@tomc-Spin-SP513-54N:~/bkup$ restic -r /media/tomc/seagate-21/spin5/ _restic-bkup/dropbox init --repo2 /media/tomc/seagate-4/ __spin5-current-restic-copy/dropbox --copy-chunker-params
enter password for secondary repository:
Fatal: unable to open config file: Stat: stat /media/tomc/seagate-4/ __spin5-current-restic-copy/dropbox/config: no such file or directory
Is there a repository at the following location?
/media/tomc/seagate-4/__spin5-current-restic-copy/dropbox
tomc@tomc-Spin-SP513-54N:~/bkup$
restic appears to be seeking and not finding a config file at the target location - but that cannot exist unless there is a repo already set up there. That seems to contradict the docs.
But I try to play along and so set up a repo so it can find a config file…
tomc@tomc-Spin-SP513-54N:~/bkup$ restic init --repo /media/tomc/seagate-4/ __spin5-current-restic-copy/dropbox
enter password for new repository:
enter password again:
created restic repository 229949af84 at /media/tomc/seagate-4/ __spin5-current-restic-copy/dropbox
.
.
.
tomc@tomc-Spin-SP513-54N:~/bkup$
Rerunning the command that was looking for that config file, I get this -
tomc@tomc-Spin-SP513-54N:~/bkup$ restic -r /media/tomc/seagate-21/spin5/ _restic-bkup/dropbox init --repo2 /media/tomc/seagate-4/ __spin5-current-restic-copy/dropbox --copy-chunker-params
enter password for secondary repository:
repository 229949af opened successfully, password is correct
created new cache in /home/tomc/.cache/restic
Fatal: create repository at /media/tomc/seagate-21/spin5/_restic-bkup/ dropbox failed: config file already exists
tomc@tomc-Spin-SP513-54N:~/bkup$
Neither approach works for me.
Clearly, I am misunderstanding something here, but I can’t see it.
What OUGHT I to be doing?