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
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.
The text was updated successfully, but these errors were encountered:
Update: It was purely a problem with Git Bash, it interpolates paths like
/mnt/backup
toC:/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 getFatal: 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 getrestoring <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 toC:/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.The text was updated successfully, but these errors were encountered: