Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot restore backup (when using Git Bash) #146

Closed
danielr1996 opened this issue Aug 31, 2022 · 0 comments
Closed

Cannot restore backup (when using Git Bash) #146

danielr1996 opened this issue Aug 31, 2022 · 0 comments

Comments

@danielr1996
Copy link

danielr1996 commented Aug 31, 2022

Update: It was purely a problem with Git Bash, it interpolates paths like /mnt/backup to C:/Program Files/Git Bash/mnt/backup and sends that to the container, therefore a directory in the container will be created at /C:/....

Original question:
While I can successfully make a backup, a have trouble restoring it.

First, the Readme says I should use docker-compose exec app restic restore latest, but then I get Fatal: please specify a directory to restore to (--target), also the restic documentation lists this parameter as mandatory, so this might just be documentation issue.

But when I try docker compose exec backup restic restore --target /mnt/backup latest I get restoring <Snapshot db8589c4 of [/mnt/backup] at 2022-08-31 17:29:16.5495533 +0200 CEST by root@docker> to C:/Program Files/Git/mnt/backup which is odd, because it seems that the container tries to restore to C:/Program Files/Git/mnt/backup (running this from git bash).
The mounted directory stays empty, also when I try to restore to /mnt/test, which isn't mounted in the container and when I exec into the container, /mnt/test isn't created either.

@danielr1996 danielr1996 changed the title Cannot restore backup Cannot restore backup (when using Git Bash) Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant