Commit Graph

17 Commits

Author SHA1 Message Date
aawsome
86fa8551f4
fix(config)!: use multiple options only as array in config profile (#1240)
Consistently uses singular and plural names for options in config and
CLI

BREAKING CHANGE: This requires to adapt CLI calls and config keys.

Affected options:
- `glob` -> `globs` in config profile
- `iglob` -> `iglobs` in config profile
- `glob`-file -> `glob-files` in config profile
- `iglob-file` -> `iglob-files` in config profile
- `custom-ignore-file` -> `custom-ignore-files` in config profile
- `tag`-> `tags` in config profile
- `keep-tags` -> now only array
- `keep-ids` -> now only array
- `use-profile`-> `use-profiles` in config profile
- `backup.sources` -> `backup.snapshots` in config profile
- `filter-host` -> `filter-hosts` in config profile
- `filter-label` -> `filter-labels` in config profile

---------

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-09-23 15:04:45 +00:00
aawsome
959c0576bc
feat(commands): backup: Add option --long (#1159)
closes #1156

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-09-18 19:04:55 +00:00
aawsome
152c256bcf
prepare release 0.8.1 (#1231)
Co-authored-by: github-actions <github-actions@github.com>
2024-09-08 21:28:13 +02:00
aawsome
78189895f3
prepare release 0.8.0 (#1202)
Co-authored-by: github-actions <github-actions@github.com>
2024-08-22 08:37:30 +02:00
aawsome
5423186657
chore: update rustic_core and rustic_backend (#1201) 2024-08-20 19:59:10 +00:00
aawsome
58ed4b3655
feat!: Allow specifying many options in config profile without array (#1130)
Breaking change:
`password-command` and `warmup-command` now must be given as array if
the commands use args.
2024-04-22 15:03:39 +02:00
aawsome
9980a36b7d
fix(config)!: multiple paths in config profile as array (#1124)
-- BREAKING CHANG --

Using multiple paths for a sources in the config file caused many
problems as the syntax was unclear and problems existed in edge cases.

This PR changes the definition of sources in config profile files:
- a single path path can be specified as before, i.e. using `source =
"/my/path"`.
- multiple paths must now be given in an array:
```
source = ["/my/path1", "/my/path2"]
```

Note that 
```
source = "/my/path1 /my/path2"
```
is now interpreted a a single path using the dir-tree "my","path1 "
(with space), "my", "path2".

closes #1122
closes #1094
2024-04-18 16:03:39 +02:00
aawsome
00c4f197d7
feat(commands): Add --check-index option (#1078)
Adds the `--check-index` option. This is an alternative to `rustic
repair index` in cases where the repository is read-only and cannot be
repaired.

Using this option, the index is checked against existing pack files and
missing information is read from the pack headers.
2024-04-15 10:53:05 +02:00
aawsome
88b21a85ad
feat(commands)!: show-config now outputs toml (#1095)
`show-config` now outputs toml.

see #1093

---------

Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-04-10 06:55:01 +02:00
simonsan
a642f134ed
test: refactor integration tests to assert_cmd and predicates, test all configs in config subdirectory (#1060)
The intention of this PR is to make it easier (more straight forward) to
write `rustic` integration tests by utilizing the `assert_cmd` and
`predicates` crates.

---------

Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-02-29 20:04:19 +00:00
simonsan
3f6afaf130
tests: replace missing crates folder with src
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-02-05 00:35:39 +01:00
github-actions[bot]
f06574be01
release: rustic-rs v0.7.0 (#1035)
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: Alexander Weiss <alex@weissfam.de>
2024-02-03 21:22:28 +00:00
simonsan
0c7da212df
tests: add test to parse all config files
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-02-03 10:16:30 +01:00
github-actions[bot]
4a785fb411
release: rustic-rs v0.6.0 (#896)
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: Alexander Weiss <alex@weissfam.de>
Co-authored-by: aawsome <37850842+aawsome@users.noreply.github.com>
2023-10-23 13:00:56 +00:00
Alexander Weiss
61314c219e Move init command to rustic_core 2023-07-07 07:02:10 +02:00
Alexander Weiss
a71d0b2e49 move getting snapshots to rustic_core 2023-06-24 07:34:51 +02:00
simonsan
b698cc57fc Refactor to library and cli application part
Co-authored-by: Alexander Weiss <alex@weissfam.de>
2023-06-06 08:51:43 +02:00