GitBulletin

Repository: farcasterxyz/hub-monorepo

Revolutionary Backup Overhaul: A New Era for Data Storage!

2024-10-28 15:32:07 UTC

Major upgrade to directory structure optimizes storage efficiency and enhances backup functionality!

Commit Details:

feat: Store backups in separate top-level directory (#2385) ## Why is this change needed? This allows the backups directory to be mounted on a separate volume so that it doesn't take away from the main storage volume. ## Merge Checklist - [x] PR title adheres to the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) standard - [x] PR has a [changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets) - [x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore) - [ ] PR includes [documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs) if necessary. <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the backup functionality in the `RocksDB` implementation by changing the backup directory structure and enhancing logging. ### Detailed summary - Updated the log message format for creating a snapshot. - Changed the `main_backup_path` construction to place backups in a dedicated `backup` directory, which is a sibling of the `main_db_path`. - Adjusted the backup file naming format to include a timestamp. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->

Search Similar