Skip to content

Conversation

@dagistan-tuncbilek
Copy link

I added Postgres script that i use and change mysql command to backup all databases.
I don't know is this the best way but it works on our production server without any problem.


POSTGRES_CONTAINER=$(docker ps --format '{{.Names}}:{{.Image}}' | grep 'postgres' | cut -d":" -f1)

for i in $CONTAINER; do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. You are checking again the same variable and not POSTGRES_CONTAINER

It should be :

for i in $POSTGRES_CONTAINER; do

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, here i made a type. You are rigth, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants