#backup #deduplication #encryption #restic #library #early-stage

rustic_backend

rustic_backend - library for supporting various backends in rustic-rs

10 releases (4 breaking)

new 0.5.2 Nov 27, 2024
0.5.1 Nov 24, 2024
0.4.2 Oct 24, 2024
0.3.0 Sep 23, 2024
0.1.0 Aug 10, 2023

#642 in Filesystem

Download history 26/week @ 2024-08-07 197/week @ 2024-08-14 222/week @ 2024-08-21 130/week @ 2024-08-28 591/week @ 2024-09-04 169/week @ 2024-09-11 420/week @ 2024-09-18 666/week @ 2024-09-25 1217/week @ 2024-10-02 451/week @ 2024-10-09 365/week @ 2024-10-16 707/week @ 2024-10-23 171/week @ 2024-10-30 296/week @ 2024-11-06 664/week @ 2024-11-13 1073/week @ 2024-11-20

2,219 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

1MB
16K SLoC

Library for supporting various backends in rustic

News

We temporarily disabled the service-ftp feature on the opendal backend due to build issues. We are working on a fix and will re-enable it as soon as possible.

About

This library is a part of the rustic project and provides a set of backends for the rustic_core library. It is used to interact with various storage backends, such as rclone, rest, and in general opendal.

The goal of this library is to provide a unified interface for interacting with various backends, so that the rustic_core library can be used to interact with them in a consistent way.

Note: rustic_backend is in an early development stage and its API is subject to change in the next releases. If you want to give feedback on that, please open an issue.

Contact

You can ask questions in the Discussions or have a look at the FAQ.

Contact Where?
Issue Tracker GitHub Issues
Discord Discord
Discussions GitHub Discussions

Usage

Add this to your Cargo.toml:

[dependencies]
rustic_backend = "*"

Crate features

This crate exposes a few features for controlling dependency usage:

  • cli - Enables support for CLI features by enabling merge and clap features. This feature is disabled by default.

  • clap - Enables a dependency on the clap crate and enables parsing from the commandline. This feature is disabled by default.

  • merge - Enables support for merging multiple values into one, which enables the conflate dependency. This is needed for parsing commandline arguments and merging them into one (e.g. config). This feature is disabled by default.

  • opendal - Enables support for the opendal backend. This feature is enabled by default.

  • rclone - Enables support for the rclone backend. This feature is enabled by default.

  • rest - Enables support for the rest backend. This feature is enabled by default.

Usage & Examples

Due to being a support crate for rustic_core, there are no examples here. Please check the examples in the rustic_core crate.

Contributing

Found a bug? Open an issue!

Got an idea for an improvement? Don't keep it to yourself!

Please make sure, that you read the contribution guide.

Minimum Rust version policy

This crate's minimum supported rustc version is 1.76.0.

The current policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if crate 1.0 requires Rust 1.20.0, then crate 1.0.z for all values of z will also require Rust 1.20.0 or newer. However, crate 1.y for y > 0 may require a newer minimum version of Rust.

In general, this crate will be conservative with respect to the minimum supported version of Rust.

License

Licensed under either of:

Dependencies

~40–56MB
~891K SLoC