Hej,
i am having a hard time to get this running. Read all the other answers but some how my case does not fit.
I am doing a pg_dump backup from a container into a borg repo:
docker exec container bash -c "pg_dump -Fc -U db user" | borg create --compression auto,lzma,7 /path/to/repo::pgarchiv -
That is working. I want to restore like this
borg extract --stdout /path/to/repo::pgarchiv | docker exec -i container pg_restore --list
pg_restore is returning the toc (nice) but in the end borg complains about a broken pipe:
Local Exception
Traceback (most recent call last):
File "borg/archiver.py", line 5168, in main
File "borg/archiver.py", line 5099, in run
File "borg/archiver.py", line 183, in wrapper
File "borg/archiver.py", line 198, in wrapper
File "borg/archiver.py", line 917, in do_extract
File "borg/archive.py", line 781, in extract_item
BrokenPipeError: [Errno 32] Broken pipe
So there is still something wrong I don’t know what. Maybe you do?
New contributor
dudehro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.