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

Feature: Add s3 backend #871

Closed
wants to merge 4 commits into from

Conversation

Scandiravian
Copy link

This PR adds an S3 backend which improves the drop-in-ability of rustic as a replacement for Restic.

When reviewing the code I highly recommend doing it one commit at a time, since some of these will be dropped before the PR is marked as ready. I have included them to show how I have tested the code.

When the PR is ready for review I will also squash the undropped commits into a single one, as per the contribution guidelines.

closes rustic-rs/rustic_core#10

This commit is for setting up a local dev environment and running the
integration tests using s3. It will be dropped when the PR is ready for
review
This is the most important part of the s3 code, containing the
implementation of the entire s3 backend
This commits simply adds s3 as an option in the choose backend. It's
boilerplate, so I split it into its own commit
This could be dropped. I implemented these as sanity checks along the
way, when I discovered bugs in my code
Comment on lines +222 to +224
fn set_option(&mut self, _option: &str, _value: &str) -> RusticResult<()> {
todo!()
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what should be implemented here, so some help on this would be really appreciated

@simonsan simonsan added C-enhancement Category: New feature or request A-backends Area: Related to backends in `rustic-core` labels Sep 11, 2023
@simonsan
Copy link
Contributor

We recently factored out rustic_core from this monorepo/workspace to its own repository, please be so kind and open this PR against the new repository: https://github.com/rustic-rs/rustic_core/pulls

Thanks a lot! 🚀

@simonsan simonsan closed this Sep 18, 2023
@simonsan simonsan added the C-migration Category: Needs migration to new rustic_core repository label Sep 18, 2023
@Scandiravian
Copy link
Author

I've been somewhat busy the last two weeks, so haven't had time to move the PR yet. Will try to get to it during October 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backends Area: Related to backends in `rustic-core` C-enhancement Category: New feature or request C-migration Category: Needs migration to new rustic_core repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add native s3 storage backend
2 participants