Skip to content
Discussion options

You must be logged in to vote

For examples about how to use rustic_core, see https://github.com/rustic-rs/rustic_core/tree/main/examples.
The idea is to create a Repository instance from RepositoryOptions and RepositoryBackends built from BackendOptions. For sftp, this should be like:

let backends = BackendOptions::default().repository("opendal:sftp").options(stfp_opts).to_backends();

and sftp_opts can be set e.g. by creating a BTreeMap using the parameter from https://nightlies.apache.org/opendal/opendal-docs-release-v0.46.0/docs/services/sftp/ .
(Note that for sftp there are some limitations by opendal.)

Then, use the methods Repository provides, e.g. open() and then get_all_snapshots().

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by aawsome
Comment options

You must be logged in to vote
1 reply
@aawsome
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants