Skip to content

Command line API compared to restic #609

Answered by aawsome
nils-werner asked this question in Q&A
Discussion options

You must be logged in to vote

The CLI options are similar to restic, but not 100% compatible. Some options have different names (e.g. --host in restic became --filter-host in rustic) and there are of course many additional options in rustic.

However, I fear that a wrapper like crestic is not needed for rustic as it already has built-in config file support.
Using a config file like myprofile.toml:

[repository]
repository = "/tmp/backup"
password = "my password"

[[backup.sources]]
source = "/home/"
git-ignore = true

allows you to call rustic -P myprofile backup and it will do the job. See the examples dir for more sophisticated config files.

Replies: 6 comments 2 replies

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nils-werner
Comment options

@nils-werner
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants