Commit Graph

581 Commits

Author SHA1 Message Date
aawsome
d8d4a93161
feat(interactive): ls: remember parent position (#1126) 2024-04-19 17:12:48 +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
de93aa390d
feat: Add interactive restore (#1123)
Currently only available from the interactive ls mode, see #1117
2024-04-18 13:41:50 +02:00
aawsome
b6e9c1b924
add progress message to interactive mode (#1120) 2024-04-17 00:24:02 +02:00
aawsome
6af6153337
feat: Add interactive ls mode (#1117)
Is currently only inlcuded in `rustic snapshots -i`.
2024-04-15 12:37:10 +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
Alexander Weiss
ab64444a4c make interactive mode command-dependent option 2024-04-14 16:50:37 +02:00
aawsome
e8448f012c
feat: Add interactive snapshots mode (#1114)
Adds an interactive (TUI) mode. E.g. call `rustic snapshots -i`

Currently only a snapshot view is implemented with possibilities to
alter snapshots (label, tags, delete protection mark).

Use `--filter-*` to filter snapshots in the interactive mode
2024-04-13 23:25:29 +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
aawsome
0f3cc39264
fix: show log filename if open/creation failed (#1111)
If opening or creating the logfile fails, rustic now shows the filename
to allow users debug the error.

closes #1105
2024-03-22 07:21:45 +00:00
Alexander Weiss
07f92d882e chore: Update deps and adapt to rustic_core changes 2024-03-22 00:38:05 +01:00
aawsome
206efa3f90
feat: Allow setting extra repository options via env variables (#1081)
Reads the env variables `RUSTIC_REPO_OPT_*`, `RUSTIC_REPO_OPTCOLD_*`,
`RUSTIC_REPO_OPTHOT_*` to set repository options. Also reads `OPENDAL_*`
variables which may be used to explicitly set opendal options (as they
are in snake and not kebab case).

closes #1073
2024-02-28 20:31:00 +01:00
aawsome
b0c7e860e7
fix: Fix possible overflow in progress bar ETA (#1079)
closes #1077
2024-02-23 08:05:30 +01:00
aawsome
2a85ea32f3
feat(commands): prune: Add more debug output (#1064) 2024-02-21 23:31:21 +01:00
simonsan
d20eaaa4dd
feat(ux): Use human-panic to print better error messages in case rustic panics (#1065)
human-panic is in so far valuable, that it can help us to better
diagnose panics and errors in rustic as it prints better messages and
even writes a log file with the stacktrace, that users can attach to
their issues.

human-panic only displays a human-friendly panic message in release
mode.
2024-02-16 08:47:27 +00:00
aawsome
85fcf8faab
fix(commands): Ask for missing password in copy when initializing (#1063)
`rustic copy --init` now supports asking for the destination password
when initializing the destination repository
2024-02-14 00:58:19 +00:00
aawsome
a477e741bf
fix(commands): Ask for password in backup and copy command if it is missing (#1061)
A user discovered that for some commands they are not being asked for a
password, although they should. This implements a fix for the backup and
copy command so they consistently call the same functionality that is
being used for the other commands. Hence, asking for the password, if
it's missing.
2024-02-12 23:36:17 +00:00
simonsan
0babf553e5
fix(cli): use hyphen in cli api for numeric-uid-gid
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-02-02 23:11:48 +01:00
simonsan
86051c5c69
tests: add missing powershell profile to completions test
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-02-02 16:44:49 +01:00
Alexander Weiss
8000845e93 ls: Add alternative option name --numeric-id 2024-02-02 09:01:53 +01:00
aawsome
a6ec35680f
feat: Add webdav command (#1024)
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-01-30 09:53:53 +00:00
aawsome
9a41c74f36
feat(cli): Add colors to help texts (#1007)
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-01-28 16:29:01 +00:00
aawsome
08bcc7ac7c
fix: error handling when entering passwords (#963) 2024-01-28 16:27:18 +00:00
aawsome
f16ba04646
refactor: adjust to changes in rustic_core for added rustic_backend (#966) 2024-01-28 15:26:59 +00:00
aawsome
7019743fcb
feat: Add option --numeric-uid-gid to ls (#1019) 2024-01-27 23:25:40 +01:00
aawsome
75482c65f6
fix: diff: Add local: to path syntax (#1000) 2024-01-11 13:09:35 +01:00
Jakub Jirutka
76cd795b51
feat(cli): Allow building without self-update feature (#975)
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-01-01 08:11:13 +00:00
aawsome
ea22ff0778
support progress bars without length (#968)
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-12-16 22:58:28 +01:00
aawsome
b8e0e40eac
feat: Add --quiet option to backup and forget (#964) 2023-12-10 23:41:03 +00:00
aawsome
6f573f517b
fix: Fix progress for copy command (#965) 2023-12-10 23:39:55 +00:00
Alexander Weiss
5be54a1bfe diff: improve code (better lifetime handling) 2023-12-08 15:27:37 +01:00
aawsome
536d1c1fac
fix: log config file logs after reading config files (#961) 2023-12-03 23:19:02 +01:00
zxcat
0df8922090
Fix term log level limiter when log-file option set (#913) 2023-10-20 04:36:46 +00:00
aawsome
4eb32574e0
init: Handle option --dry-run (#906) 2023-10-12 14:39:09 +00:00
simonsan
29ce537b03
feat(alloc): Add optional (unsupported) allocators (#897)
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-19 20:46:26 +00:00
simonsan
d33e576fd8
ci: deactivate semver checks until rustic-rs library is released
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-19 00:55:41 +02:00
simonsan
f3b0ac58a8
chore(docs): update library documentation
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-19 00:49:44 +02:00
aawsome
432380e157
Allow setting env variables in config file (#866)
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-18 21:44:57 +00:00
simonsan
9a711ae599
chore: remove outdated lint
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-18 17:52:14 +02:00
simonsan
da6217277f
docs: fix item links in documentation for rustic_core
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-14 19:27:10 +02:00
aawsome
2af074a7f4
feat(backup): Add init option (#805)
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-11 06:17:27 +02:00
simonsan
50248e72f9 Refactor rustic_core API & add documentation
Co-authored-by: Alexander Weiss <alex@weissfam.de>
2023-09-05 21:55:23 +02:00
aawsome
f528337113
feat(commands): add --json option to forget command (#806)
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-08-16 18:41:13 +02:00
Alexander Weiss
3477669eb0 handle non-unicode link-targets 2023-08-01 06:46:38 +02:00
Alexander Weiss
a436fc4522 refactor diff command 2023-07-21 12:14:09 +02:00
aawsome
774604924f
Merge pull request #774 from rustic-rs/refactor-repair
refactor repair command
2023-07-20 21:20:48 +02:00
Alexander Weiss
65df10766b ls: Add options --summary and --long 2023-07-20 20:50:59 +02:00
Alexander Weiss
b0c9d7c8ab refactor repair command 2023-07-19 23:26:33 +02:00
Alexander Weiss
74bc7ca304 refactor merge command 2023-07-18 16:39:09 +02:00
Alexander Weiss
9f494313da refactor copy command 2023-07-14 16:10:06 +02:00