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

Add Backup/Restore Functionality #27

Closed
0xnullifier opened this issue Dec 16, 2024 · 0 comments · Fixed by #51
Closed

Add Backup/Restore Functionality #27

0xnullifier opened this issue Dec 16, 2024 · 0 comments · Fixed by #51
Labels
enhancement New feature or request hard Damn you believe yourself too much (not a thing) I dare you to solve these!

Comments

@0xnullifier
Copy link
Collaborator

A backup / replica is used wildly in production and is a required thing in most production code bases.

You should be able to create backups based on options like backupTime , backupDir and write files there in a compressed way of your own choice. You can create efficient dumps by some mechanism like storing all things in a long buffer and all.

There will be multiple follow up issues so it is you chance to really boost up your points

Proposed API:

// dumping interfact
func (m *memoria) createDump() error  {
 // create a dump based on a dumping mechanism
}

// Backup interface
func (m *memoria) Backup( backupDir string) error {
   // reverse algo of the dump mechanism you made
}

//then backup looks 
store.Backup(f)
@0xnullifier 0xnullifier added enhancement New feature or request hard Damn you believe yourself too much (not a thing) I dare you to solve these! labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hard Damn you believe yourself too much (not a thing) I dare you to solve these!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant