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

Docker backup #2533

Closed
wants to merge 20 commits into from
Closed

Conversation

dumbstertruck3
Copy link

@dumbstertruck3 dumbstertruck3 commented Oct 13, 2024

Proposed Changes

  • Added a script for backing up the PSQL database in the docker container
  • Added docs to set up the cronjob in README.md
  • Edited the compose file to mount a local directory to new directory inside the container
  • Added docs to restore the container's database
  • Fixed some typos

Associated Issue

  • Create db backup scripts for instances running on pure docker #2301
  • The backup script works perfectly
  • Mounted a local directory to a new directory(backup) inside the container, so that the user can move the backed up sql file inside this local directory and restore the container's database
  • The backup.md doc will help the user to restore the container's database

Architecture changes

  • Added a new doc
  • Added a new script in /care/scripts

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete
  • Any other necessary step

Only PR's with test cases included and passing lint and test pipelines will be reviewed

@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins

@dumbstertruck3 dumbstertruck3 requested a review from a team as a code owner October 13, 2024 17:23
@dumbstertruck3
Copy link
Author

Been on this for months now, When i started working all i knew was a bit of shell scripting i learned for a hackathon. i was about to give up then one of the maintainers called me and told me that this will be a great opportunity for me to learn new things and he was right, i learned a damn lot. Thing is i don't get much time for doing this things, but i will be working on this, got a couple of ideas to make the restoration easier. so yeah there will be more pr's :)

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.

1 participant