Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the postgresql database not being preserved #477

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

mikedep333
Copy link
Member

@mikedep333 mikedep333 commented May 5, 2023

for docker-compose.

fixes: #468

Also fix the transfer process.

And fix a CI issue with podman-compose by limiting us to 1.0.3 and its healthcheck syntax.

@mikedep333 mikedep333 marked this pull request as draft May 5, 2023 17:43
@mikedep333
Copy link
Member Author

mikedep333 commented May 8, 2023

To fix existing systems:

curl https://raw.githubusercontent.com/alaub81/backup_docker_scripts/main/backup-docker-volume.sh -o backup-docker.volume.sh
sudo docker inspect compose_postgres_1
# Observe what the long random hexadecimal Name of the ephemeral volume is, under Mounts.
# Optional: Edit backup-docker.volume.sh so that VOLUME is only set to the specific volume Name
sudo docker-compose stop
sudo bash backup-docker.volume.sh
sudo ls -latr /backup/
# Verify that there is a tarball  with the Name of the volume, with a timestamp hyphenated after it.
sudo docker-compose down
# This next command creates the correct volume pg_datadev. The filepath must be specified
sudo docker run --rm -v /backup/volumes:/backup -v pg_datadev:/data --name restore alpine sh -c "cd /data && /bin/tar -xvf /backup/c532edb6e667574d73b6f6efc75f2e2bc39f1cce0bff3b417a6b1fec35e39b87-202305051806.tar.gz"
sudo docker-compose up

@mikedep333 mikedep333 marked this pull request as ready for review May 8, 2023 13:18
Copy link
Member

@bmbouter bmbouter left a comment

Choose a reason for hiding this comment

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

Thanks, please merge once CI passes

@mikedep333 mikedep333 closed this May 16, 2023
@mikedep333 mikedep333 reopened this May 16, 2023
@decko decko closed this May 31, 2023
@decko decko reopened this May 31, 2023
@stale
Copy link

stale bot commented Jun 30, 2023

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

@stale stale bot added the stale label Jun 30, 2023
@stale
Copy link

stale bot commented Jul 30, 2023

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.

@stale stale bot closed this Jul 30, 2023
@mikedep333 mikedep333 reopened this Aug 9, 2023
@stale
Copy link

stale bot commented Aug 9, 2023

This pull request is no longer marked for closure.

@stale
Copy link

stale bot commented Sep 17, 2023

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

@stale stale bot added the stale label Sep 17, 2023
@stale
Copy link

stale bot commented Oct 17, 2023

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.

@stale stale bot closed this Oct 17, 2023
@mikedep333 mikedep333 reopened this Nov 7, 2023
Copy link

stale bot commented Nov 7, 2023

This pull request is no longer marked for closure.

@stale stale bot removed the stale label Nov 7, 2023
@mikedep333 mikedep333 force-pushed the 468_compose_data branch 5 times, most recently from 11b5fb2 to 37b39c6 Compare November 9, 2023 16:20
@mikedep333 mikedep333 force-pushed the 468_compose_data branch 3 times, most recently from 3192ecb to 68aca01 Compare November 16, 2023 17:19
Similar to how Ubuntu 22.04 has podman 3.4.4
from Dec 2021 also.

Requires using CMD-SHELL healthcheck implicitly to avoid a parsing error.

Fixes "error generating dependency graph for container"

[noissue]
@mikedep333 mikedep333 merged commit 24e8d5a into pulp:latest Nov 16, 2023
15 checks passed
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.

The postgresql database is not being preserved for docker-compose
4 participants