Jump to content
php.lv forumi
Sign in to follow this  
Wuu

pg dumpa atjaunošana windows vidē

Recommended Posts

 

sudo cat $BACKUPNAME | docker exec -i automation-pg psql -U postgres

 

Šādi atjaunoju uz unix sistēmas. Bet kāds ir ekvivalents Windows sistēmā? ...

Share this post


Link to post
Share on other sites

Mans risinājums ir piemapots db dumpu folderis iekš postgres konteinera, kurā atrodas visi dumpi + restore.sh skripts, kuru pēc vajadzības izsauc iekš konteinera.

Share this post


Link to post
Share on other sites

Njā, es apmēram tā arī izdarīju. Kopēju dumpy docker konteineri un manuāli atjaunoju. :/

Cik atceros, Windows vidē shared direktorijas nestrādā. (Vismaz man, dēļ iekšējiem uzņēmuma policies windowsā ) :/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×