Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions src/breaking_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,45 @@ guidance on how to migrate from one version to another.

### Changed default behavior

The `prune` command will now not recover marked-but-still-used packs directly,
but instead mark them for recovery. This is needed to prevent potential data
loss when multiple `prune` and `backup` runs run in parallel.

The chunker now will produce slightly different chunks in some rare situations.
This fixes a bug where the restic and rustic chunkers did not behave
identically.

If you specify multiple paths for a backup, subpaths won't be merged any longer.
Instead the paths are backup'ed as given. This fixes a bug where backup of a
subdir on a different drive was not possible with the `one-file-system` option.

### Changed options

The `prune` option `--keep-delete` has been renamed to `--keep-marked`. This
time span is used for deletion as well as for recovery.

The backend options to set a root certificate and a client certificate are
renamed. Instead of

```toml
cacert = "cert-file"
tls-client-cert = "client-cert-file"
```

use now

```toml
http-cacert = "cert-file"
http-tls-client-cert = "client-cert-file"
```

Note that these options are now also available for opendal and other options
have been added, too.

## 0.11.4

### Changed default behavior

During restores from cold storage, rustic now captures your warm-up command's
stdout and parses it as [JSON Lines](https://jsonlines.org) to report restore
progress, rather than passing it straight through to the terminal.
Expand Down
92 changes: 46 additions & 46 deletions src/comparison-restic.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Comparison between `rustic` and `restic`

Note that we regularly update this document to compare the latest versions of
rustic and restic. Currently, we compare restic 0.19.0 with rustic 0.11.3.
rustic and restic. Currently, we compare restic 0.19.1 with rustic 0.12.0.

## General differences

Expand All @@ -10,7 +10,7 @@ rustic and restic. Currently, we compare restic 0.19.0 with rustic 0.11.3.
| programming language | Go | Rust |
| development philosopy | conservative with changes | moving fast, add new features early |
| configuration | opinionated, few choices | offers many choices to users; reasonable defaults |
| test coverage | ✅ | (✅) (57% in rustic_core) |
| test coverage | ✅ | ✅ (65% in rustic_core) |
| available as library | ❌ | ✅ [rustic_core](https://crates.io/crates/rustic_core) |

## Core features introduced by rustic
Expand Down Expand Up @@ -129,48 +129,48 @@ introduced by rustic. Some have been already adopted by restic.

## General options

| option | `restic` | `rustic` |
| ---------------------------- | ---------------------------------- | --------------------------------------------------------- |
| `--cacert` | ✅ | ❌ |
| `--cache-dir` | ✅ | ✅ (or in config profile) |
| `--cleanup-cache` | ✅ | ❌ |
| `--compression` | ✅ needed in every call | ✅ (-7..22) configure once in in-repo config |
| `--dry-run` | ✅ | ✅ (or in config profile) |
| `--insecure-no-password` | ✅ | ✅ (empty passwords work without extra option) |
| `--insecure-tls` | ✅ | ❌ |
| `--json` | ✅ | ✅ |
| `--key` | ❌ (no access via masterkey) | ✅ (or in config profile) |
| `--key-file` | ❌ (no access via masterkey) | ✅ (or in config profile) |
| `--key-command` | ❌ (no access via masterkey) | ✅ (or in config profile) |
| `--key-hint` | ✅ | ❌ |
| `--limit-download` | ✅ | (✅) (for opendal option `trottle`) |
| `--limit-upload` | ✅ | (✅) (for opendal option `trottle`) |
| `--log-file` | ❌ | ✅ (or in config profile) |
| `--no-cache` | ✅ | ✅ (or in config profile) |
| `--no-extra-verify` | ✅ needed in every call | ✅ configure once using `config` |
| `--no-lock` | ✅ | ✅ all operations are lock-free |
| `--no-progress` | ❌ | ✅ (or in config profile) |
| `--progress-intervall` | ✅ (via env variable) | ✅ (or in config profile) |
| `--option` | ✅ as cmd arg or env variable | ✅ via config profile or env variable |
| `--opentelemetry` | ❌ | ✅ (or in config profile, only for `backup` currently) |
| `--pack-size` | ✅ fix limit; needed in every call | ✅ fix or dynamic limit, configure once in in-repo config |
| `--password-command` | ✅ | ✅ (or in config profile) |
| `--password-file` | ✅ | ✅ (or in config profile) |
| `--prometheus` | ❌ | ✅ (or in config profile, only for `backup` currently) |
| `--prometheus-user` | ❌ (no prometheus support) | ✅ (or in config profile) |
| `--prometheus-pass` | ❌ (no prometheus support) | ✅ (or in config profile) |
| `--quiet` | ✅ | ✅ (use log-level configuration) |
| `--repo` | ✅ | ✅ (or in config profile) |
| `--repo-hot` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--repository-file` | ✅ | ❌ (use `repository` in config profile instead) |
| `--retry-lock` | ✅ | not needed; lock-free |
| `--tls-client-cert` | ✅ | ❌ |
| `--use-profile` | ❌ (no config profile support) | ✅ (or in config profile for recursively using profiles) |
| `--verbose` (multiple times) | ✅ | ✅ `--log-level-*` |
| `--warm-up` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--warm-up-batch` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--warm-up-wait` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--warm-up-wait-command` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| option | `restic` | `rustic` |
| ---------------------------- | ---------------------------------- | ----------------------------------------------------------------- |
| `--cacert` | ✅ | ✅ (`http-cacert` in config profile or via env variable) |
| `--cache-dir` | ✅ | ✅ (or in config profile) |
| `--cleanup-cache` | ✅ | ❌ |
| `--compression` | ✅ needed in every call | ✅ (-7..22) configure once in in-repo config |
| `--dry-run` | ✅ | ✅ (or in config profile) |
| `--insecure-no-password` | ✅ | ✅ (empty passwords work without extra option) |
| `--insecure-tls` | ✅ | ✅ (`http-insecure-tls` config profile or via env variable) |
| `--json` | ✅ | ✅ |
| `--key` | ❌ (no access via masterkey) | ✅ (or in config profile) |
| `--key-file` | ❌ (no access via masterkey) | ✅ (or in config profile) |
| `--key-command` | ❌ (no access via masterkey) | ✅ (or in config profile) |
| `--key-hint` | ✅ | ❌ |
| `--limit-download` | ✅ | (✅) (for opendal option `trottle`) |
| `--limit-upload` | ✅ | (✅) (for opendal option `trottle`) |
| `--log-file` | ❌ | ✅ (or in config profile) |
| `--no-cache` | ✅ | ✅ (or in config profile) |
| `--no-extra-verify` | ✅ needed in every call | ✅ configure once using `config` |
| `--no-lock` | ✅ | ✅ all operations are lock-free |
| `--no-progress` | ❌ | ✅ (or in config profile) |
| `--progress-intervall` | ✅ (via env variable) | ✅ (or in config profile) |
| `--option` | ✅ as cmd arg or env variable | ✅ via config profile or env variable |
| `--opentelemetry` | ❌ | ✅ (or in config profile, only for `backup` currently) |
| `--pack-size` | ✅ fix limit; needed in every call | ✅ fix or dynamic limit, configure once in in-repo config |
| `--password-command` | ✅ | ✅ (or in config profile) |
| `--password-file` | ✅ | ✅ (or in config profile) |
| `--prometheus` | ❌ | ✅ (or in config profile, only for `backup` currently) |
| `--prometheus-user` | ❌ (no prometheus support) | ✅ (or in config profile) |
| `--prometheus-pass` | ❌ (no prometheus support) | ✅ (or in config profile) |
| `--quiet` | ✅ | ✅ (use log-level configuration) |
| `--repo` | ✅ | ✅ (or in config profile) |
| `--repo-hot` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--repository-file` | ✅ | ❌ (use `repository` in config profile instead) |
| `--retry-lock` | ✅ | not needed; lock-free |
| `--tls-client-cert` | ✅ | ✅ (`http-tls-client-cert` in config profile or via env variable) |
| `--use-profile` | ❌ (no config profile support) | ✅ (or in config profile for recursively using profiles) |
| `--verbose` (multiple times) | ✅ | ✅ `--log-level-*` |
| `--warm-up` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--warm-up-batch` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--warm-up-wait` | ❌ (no cold-storage support) | ✅ (or in config profile) |
| `--warm-up-wait-command` | ❌ (no cold-storage support) | ✅ (or in config profile) |

## `rustic` in-repo config options

Expand Down Expand Up @@ -299,7 +299,7 @@ introduced by rustic. Some have been already adopted by restic.
| `--no-ownership` | ❌ | ✅ |
| `--numeric-id` | ❌ | ✅ |
| `--overwrite` | ✅ | ❌ (missing functionality: if-newer, never) |
| `--sparse` | ✅ | ❌ |
| `--sparse` | ✅ | ✅ |
| `--target` | ✅ | ✅ (give target as second CLI argument) |
| `--verify` | ✅ | ❌ (but `diff` can be used to verify after) |
| `--verify-existing` | ✅ `--overwrite always` | ✅ |
Expand Down Expand Up @@ -427,7 +427,7 @@ introduced by rustic. Some have been already adopted by restic.
| `--all` | ❌ | ✅ |
| `--compact` | ✅ | ❌ |
| `--group-by` | ✅ (host/paths/tags) | ✅ (host/label/paths/tags) |
| `--latest` | ✅ | ❌ |
| `--latest` | ✅ | ✅ (using `--filter-last`) |
| `--long` | ❌ | ✅ |

### `ls`
Expand Down
Loading