Jump to content
php.lv forumi

pg dumpa atjaunošana windows vidē


Recommended Posts

Posted

 

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ā? ...

Posted

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.

Posted

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ā ) :/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...