Skip to content

feat(cmd): add new Lightweight option to BGSAVE cmd #3057

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

Closed

Conversation

ltagliamonte-dd
Copy link
Contributor

Current backups create full copies of all files, doubling disk space usage.
This PR adds a lightweight backup mode that uses RocksDB checkpoints with hard links instead of copies, cutting space usage in half.

Ideal for use cases like backoffice data inserts, it lets you pause writes, create and upload a backup without doubling disk space, then resume writes quickly and efficiently.

This makes backups faster, leaner, and much more storage-friendly!

TODO: add unit tests

@ltagliamonte-dd ltagliamonte-dd changed the title Lightweight backup feat(cmd): add new Lightweight option to BGSAVE cmd Jul 16, 2025
@ltagliamonte-dd ltagliamonte-dd deleted the lightweight_backup branch July 17, 2025 08:09
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