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

docs: how to backup to B2 #1319

Closed
dsully opened this issue Apr 29, 2023 · 3 comments
Closed

docs: how to backup to B2 #1319

dsully opened this issue Apr 29, 2023 · 3 comments
Labels
A-docs Area: Improvements or additions to documentation C-enhancement Category: New feature or request

Comments

@dsully
Copy link

dsully commented Apr 29, 2023

Hi - I'm currently using restic and wanted to try rustic as an alternative. However, I'm having trouble backing up directly to B2.

Here's the repository section of rustic.toml:

[repository]
repository = "rclone:b2:remote"
password-file = "..."

And my rclone.conf:

[remote]
type = b2
account = ...
key = ...
hard_delete = true

If I run rustic backup:

$ rustic backup
using config /root/.config/rustic/rustic.toml
[INFO] rclone output: 2023/04/28 16:54:26 Failed to create file system for "b2:remote": didn't find section in config file

Error: rclone exited with exit status: 1

I've tried various permutations of the repository name, with a : appended or removing b2:

$ rustic backup
using config /root/.config/rustic/rustic.toml
Error: No repository config file found. Is there a repo at rclone:remote:?

My existing restic config can backup directly to B2 without needing rclone at all.

The example here with OVH: https://github.com/rustic-rs/rustic/blob/main/examples/ovh-hot-cold.toml indicates I can do a direct backup to a remote provider.

Thanks

@aawsome
Copy link
Member

aawsome commented Apr 29, 2023

Judging from your rclone config, the repository should look like rclone:remote:.
You can always try if rclone is able to access the storage and then prefix the access path with rclone:.

@dsully
Copy link
Author

dsully commented May 2, 2023

For a future reader, this is what worked for me finally:

$XDG_CONFIG_HOME/rustic/rustic.toml:

[repository]
repository = "rclone:remote:<my-bucket-name>"

$XDG_CONFIG_HOME/rclone/rclone.conf:

[remote]
type = "b2"
account = "<account-id>"
key = "<account-key>"
hard_delete = true

If/until there is a native B2 backend for Rustic.

@aawsome Not sure if this should go into a user guide, or the Wiki (which looks to be disabled).

@aawsome aawsome changed the title Confused on how to backup to B2 Dokument: how to backup to B2 May 9, 2023
@aawsome aawsome changed the title Dokument: how to backup to B2 Documenation: how to backup to B2 May 9, 2023
@simonsan simonsan changed the title Documenation: how to backup to B2 docs: how to backup to B2 Jul 17, 2023
@simonsan simonsan transferred this issue from rustic-rs/rustic Sep 7, 2023
@simonsan simonsan added the good first issue Call for participation: Good for newcomers label Oct 2, 2023
@simonsan simonsan transferred this issue from rustic-rs/docs Oct 11, 2024
@simonsan simonsan added A-docs Area: Improvements or additions to documentation C-enhancement Category: New feature or request and removed good first issue Call for participation: Good for newcomers labels Oct 11, 2024
@simonsan
Copy link
Contributor

The service config documentation is in the main repository under /config/services, here is an example using opendal for B2: https://github.com/rustic-rs/rustic/blob/main/config/services/b2.toml

@github-project-automation github-project-automation bot moved this from Todo to Done in Documentation Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Improvements or additions to documentation C-enhancement Category: New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants