I wanted to confirm if where restic looks for the repository depends only on the path name and not the device.
For example lets say I have 2 hard drives; sdb and sdc
-
If I initialise a restic reposiory at sdc with the following:
export RESTIC_REPOSITORY="/run/media/user/WD/restic-backup" export RESTIC_PASSWORD="foo" restic init
-
and then I backup data to the repository above to give
# restic snapshotsrepository 1f475afi opened successfully, password is correct ID Date Host Tags Directory ---------------------------------------------------------------------- d234a134 2018-04-20 18:10:42 Bob /
-
If I move this repository temporarily to sdb and delete the original repository in sdc (by formatting), and then later move this repository back to its orginal location in sdc, will I still be able to open the repository to access my data?