You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, restic scared my good.
I ran restic -r /mnt/bacup/restic snaphosts and got
unable to open config file: Stat: stat /mnt/bacup/restic/config: no such file or directory
Is there a repository at the following location?
/mnt/bacup/restic
I quickly checked /mnt/bacup/restic/ and indeed, the config file was missing. I was already worried that my repository was hosed. Then it dawned on me, that I simply had typoed the repository path (which should have been /mnt/backup/restic).
restic unhelpfully had created a /mnt/bacup/restic directory/repository.
Imho, restic should never auto-create a repository. The only time this should happen is on restic init.
It should simply return an error in such a case.
To reproduce the error, run restic -r /tmp/typo snapshots and see that restic has created something at /tmp/typo which looks like a (incomplete) repository.
The text was updated successfully, but these errors were encountered:
Thanks for the super fast response!
Fwiw, snapshots is not the only command which currently triggers this behaviour, others like backup or check do so as well.
Output of
restic version
restic 0.7.1
compiled with go1.8.3 on linux/amd64
Today, restic scared my good.
I ran
restic -r /mnt/bacup/restic snaphosts
and gotI quickly checked /mnt/bacup/restic/ and indeed, the config file was missing. I was already worried that my repository was hosed. Then it dawned on me, that I simply had typoed the repository path (which should have been /mnt/backup/restic).
restic unhelpfully had created a /mnt/bacup/restic directory/repository.
Imho, restic should never auto-create a repository. The only time this should happen is on
restic init
.It should simply return an error in such a case.
To reproduce the error, run
restic -r /tmp/typo snapshots
and see that restic has created something at /tmp/typo which looks like a (incomplete) repository.The text was updated successfully, but these errors were encountered: