I’ve done the modification on the repository clone and all looks fine.
- The original repository (id: 88e9a296)
$ restic hdd snapshots -c
Sourcing '/home/morgoth/Restic/repos/hdd/hdd.env' ...
[INFO] Filesystem '/mnt/backup' is mounted
repository 88e9a296 opened successfully, password is correct
- The cloned repository after changing the ID (id: 2b570354)
$ restic picloud snapshots -c
Sourcing '/home/morgoth/Restic/repos/picloud/picloud.env' ...
rclone: 2020/08/22 20:58:40 NOTICE: Config file "/home/morgoth/.config/rclone/rclone.conf" not found - using defaults
repository 2b570354 opened successfully, password is correct
- When I access the repositories I get 2 different caches. To verify that I deleted the content of
~/.cache/restic and accessed the repository to verify which directory is created.
$ ls -al ~/.cache/restic
drwx------ 1 morgoth morgoth 280 Aug 22 20:59 .
drwxr-xr-x 1 morgoth morgoth 2756 Aug 22 20:54 ..
drwx------ 1 morgoth morgoth 50 Aug 22 20:58 2b570354032f1143614a5ae79a10f4bd94d1ee6e6fc028bb5078256aee83f7f1
drwx------ 1 morgoth morgoth 50 Aug 22 20:59 88e9a296f59b3df16854cd1f902c8e40b5a6ff316cacdbeb094aac71ff5c8f1a
-rw-r--r-- 1 morgoth morgoth 44 Aug 22 20:54 CACHEDIR.TAG
I’m currently checking the ‘new’ repo (
check --read-data) just to be sure it’s in a good “state”
So based on these verification I would say that changing the ID on the repo clone was successful.
I would say that this does not matter much for me. It’s to backup my personal data. It’s good enough that it’s a repository protected with a password.
Thanks a lot !
Edit: After completing check on the repository I successfully tested restore. I selected random files in random snapshots and I was able to restore without problem.