pgsync
pgsync copied to clipboard
Please update the guide in Docker section
Hello,
When I tried using pgsync with docker
docker pull ankane/pgsync
alias pgsync="docker run -ti ankane/pgsync";
pgsync --init
No file was created. So I think the guide in docker section should be change
From:
docker pull ankane/pgsync
alias pgsync="docker run -ti ankane/pgsync"
To:
docker pull ankane/pgsync
alias pgsync="docker run -ti -v $(pwd):/opt -w='/opt' ankane/pgsync"
Just ran into this today, thanks for posting that!
https://github.com/ankane/pgsync/pull/202 -- PR here that updates the README with this info.
Thanks for the great tool.
It seems like this is run on-demand. Would it possible to implement a watcher with this so that it can run and sync in the background? not sure how difficult that is with postgres.