restic/changelog
Ryan Hitchman 77bf148460 backup: add --dry-run/-n flag to show what would happen.
This can be used to check how large a backup is or validate exclusions.
It does not actually write any data to the underlying backend. This is
implemented as a simple overlay backend that accepts writes without
forwarding them, passes through reads, and generally does the minimal
necessary to pretend that progress is actually happening.

Fixes #1542

Example usage:

$ restic -vv --dry-run . | grep add
new       /changelog/unreleased/issue-1542, saved in 0.000s (350 B added)
modified  /cmd/restic/cmd_backup.go, saved in 0.000s (16.543 KiB added)
modified  /cmd/restic/global.go, saved in 0.000s (0 B added)
new       /internal/backend/dry/dry_backend_test.go, saved in 0.000s (3.866 KiB added)
new       /internal/backend/dry/dry_backend.go, saved in 0.000s (3.744 KiB added)
modified  /internal/backend/test/tests.go, saved in 0.000s (0 B added)
modified  /internal/repository/repository.go, saved in 0.000s (20.707 KiB added)
modified  /internal/ui/backup.go, saved in 0.000s (9.110 KiB added)
modified  /internal/ui/jsonstatus/status.go, saved in 0.001s (11.055 KiB added)
modified  /restic, saved in 0.131s (25.542 MiB added)
Would add to the repo: 25.892 MiB
2021-08-04 21:19:29 +02:00
..
0.6.0_2017-05-29
0.6.1_2017-06-01
0.7.0_2017-07-01
0.7.1_2017-07-22
0.7.2_2017-09-13
0.7.3_2017-09-20
0.8.0_2017-11-26 Fix typos 2020-05-16 14:05:26 +08:00
0.8.1_2017-12-27
0.8.2_2018-02-17
0.8.3_2018-02-26
0.9.0_2018-05-21
0.9.1_2018-06-10
0.9.2_2018-08-06
0.9.3_2018-10-13
0.9.4_2019-01-06
0.9.5_2019-04-23
0.9.6_2019-11-22
0.10.0_2020-09-19 Add gitignore to changelog/unreleased 2020-11-05 09:01:32 +01:00
0.11.0_2020-11-05 Prepare changelog for 0.11.0 2020-11-05 09:41:22 +01:00
0.12.0_2021-02-14 Prepare changelog for 0.12.0 2021-02-14 11:44:00 +01:00
0.12.1_2021-08-03 Prepare changelog for 0.12.1 2021-08-03 11:45:19 +02:00
unreleased backup: add --dry-run/-n flag to show what would happen. 2021-08-04 21:19:29 +02:00
CHANGELOG.tmpl
TEMPLATE Improved changelog template 2020-10-12 12:15:15 +02:00
changelog-github.tmpl