pgsync icon indicating copy to clipboard operation
pgsync copied to clipboard

Please update the guide in Docker section

Open thiennq opened this issue 2 years ago • 3 comments

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"

thiennq avatar Sep 18 '23 16:09 thiennq

Just ran into this today, thanks for posting that!

mneira10 avatar Sep 26 '23 01:09 mneira10

https://github.com/ankane/pgsync/pull/202 -- PR here that updates the README with this info.

Thanks for the great tool.

ghost avatar Oct 20 '23 14:10 ghost

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.

beasteers avatar Jan 25 '24 18:01 beasteers