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

DEVOPS-1770 - db_zip2cloud - RC 1.0 #31

Merged
merged 71 commits into from
May 16, 2024
Merged

DEVOPS-1770 - db_zip2cloud - RC 1.0 #31

merged 71 commits into from
May 16, 2024

Conversation

bio-boris
Copy link

@bio-boris bio-boris commented Apr 26, 2024

Motivation

This pull request aims to enhance the db_zip2cloud application's efficiency and versatility:

  • The updates are designed to facilitate different types of data restoration:
    • Fast recent restores directly from a local dump directory.
    • Longer-term restores from the local 7zip files.
    • Disaster recovery restores from remote S3 storage via rclone
    • Local retention can be set by variable
  • The script serves as a universal tool, capable of zipping and uploading backups from any tool.
  • This enhances its adaptability across diverse environments.
  • Last but not least, it provides changes needed to work with

Changes

Dockerfile

The Dockerfile has been updated to optimize the build process and reduce the final image size. A multi-stage build process based on Alpine provides a smaller and more secure Docker image.

Application

The zip2cloud application has undergone several changes to improve its functionality.
The new script runs through a number of steps:

  1. Cleanup: The cleanup process has been refined to ensure old zip files and backup dumps are removed based on the retention policies set in the environment variables.
  2. Zip: The process of creating .7z archives of dump directories has been optimized for better performance.
  3. Checksum: The checksum retrieval process has been improved for better accuracy and efficiency when comparing local zip files against remote MD5 checksums.
  4. Create Upload List: The process of verifying and updating the list of files to upload has been enhanced to handle filename conflicts more effectively.
  5. Upload: The upload process now uses the rclone command for more reliable and efficient uploads to the remote storage.

Conclusion

We've made some key improvements to the db_zip2cloud application. The goal is to make our backup and restore process faster and more reliable, regardless of the data source.

@jsfillman jsfillman changed the title DEVOPS-1770 Fixes DEVOPS-1770 - db_zip2cloud - RC 1.0 May 9, 2024
@jsfillman jsfillman marked this pull request as ready for review May 9, 2024 06:09
@bio-boris bio-boris requested review from kkellerlbl and jsfillman May 10, 2024 12:32
@kkellerlbl
Copy link
Member

LGTM. I didn't scrutinize the code, since Jason went over it in detail with me last week, and we know the backups are running.

@jsfillman jsfillman merged commit 2a4dfdf into master May 16, 2024
6 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.

3 participants