Jarek Kowalski
f49bcdd883
feat(cli): implementation for 'kopia snapshot fix' ( #1930 )
...
* feat(cli): implementation for 'kopia snapshot fix'
This allows modifications and fixes to the snapshots after they have
been taken.
Supported are:
* `kopia snapshot fix remove-invalid-files [--verify-files-percent=X]`
Removes all directory entries where the underlying files cannot be
read based on index analysis (this does not read the files, only index
structures so is reasonably quick).
`--verify-files-percent=100` can be used to trigger full read for
all files.
* `kopia snapshot fix remove-files --object-id=<object-id>`
Removes the object with a given ID from the entire snapshot tree.
Useful when you accidentally snapshot a sensitive file.
* `kopia snapshot fix remove-files --filename=<wildcard>`
Removes the files with a given name from the entire snapshot tree.
Useful when you accidentally snapshot a sensitive file.
By default all snapshots are analyzed and rewritten. To limit the scope
use:
--source=user@host:/path
--manifest-id=manifestID
By default the rewrite operation writes new directory entries but
does not replace the manifests. To do that pass `--commit`.
Related #1906
Fixes #799
reorganized CLI per PR suggestion
* additional logging for diff command
* added Clone() method to snapshot manifst and directory entry
* added a comprehensive test, moved DirRewriter to separate file
* pr feedback
* more pr feedback
* improved logging output
* disable test in -race configuration since it's way to slow
* pr feedback
2022-05-25 01:17:55 +00:00
..
2022-05-16 01:21:30 +00:00
2021-08-02 21:08:54 -07:00
2022-03-19 22:42:59 -07:00
2021-06-16 19:44:55 -07:00
2021-05-03 10:28:00 -07:00
2021-05-03 10:28:00 -07:00
2021-05-06 20:26:35 -07:00
2021-05-03 10:28:00 -07:00
2022-03-26 14:28:08 +00:00
2022-03-26 14:28:08 +00:00
2022-03-26 14:28:08 +00:00
2022-03-26 14:28:08 +00:00
2022-03-26 14:28:08 +00:00
2022-03-26 14:28:08 +00:00
2022-03-26 14:28:08 +00:00
2021-05-11 22:26:28 -07:00
2021-05-11 22:26:28 -07:00
2021-08-02 21:08:54 -07:00
2021-11-16 06:02:04 -08:00
2022-01-25 21:21:13 -08:00
2021-09-19 18:50:38 -07:00
2021-09-08 18:44:03 -07:00
2021-08-20 08:45:10 -07:00
2021-06-16 19:44:55 -07:00
2021-09-19 18:50:38 -07:00
2021-06-16 19:44:55 -07:00
2021-12-03 15:35:01 -08:00
2022-03-12 23:16:39 -08:00
2021-09-08 18:44:03 -07:00
2021-12-03 15:35:01 -08:00
2021-09-08 18:44:03 -07:00
2022-03-15 23:57:04 -07:00
2022-03-06 14:30:58 -08:00
2022-05-10 03:45:25 +00:00
2021-05-22 05:35:27 -07:00
2022-04-05 18:04:50 -07:00
2021-05-15 12:12:34 -07:00
2021-05-11 22:26:28 -07:00
2022-03-19 22:42:59 -07:00
2021-10-06 08:39:10 -07:00
2022-05-02 04:03:28 +00:00
2021-05-03 10:28:00 -07:00
2021-05-15 12:12:34 -07:00
2021-07-06 21:38:08 -07:00
2021-07-06 21:38:08 -07:00
2021-09-08 18:44:03 -07:00
2021-10-17 18:35:21 -07:00
2021-07-06 21:38:08 -07:00
2021-05-15 12:12:34 -07:00
2021-05-23 22:18:31 -07:00
2021-07-06 21:38:08 -07:00
2021-06-05 08:48:43 -07:00
2021-06-05 08:48:43 -07:00
2022-05-23 15:16:25 -07:00
2022-05-23 15:16:25 -07:00
2021-11-06 23:08:00 -07:00
2021-06-05 08:48:43 -07:00
2022-01-25 21:21:13 -08:00
2021-09-10 17:51:55 -07:00
2021-10-22 15:35:09 -07:00
2021-08-02 21:08:54 -07:00
2021-06-05 08:48:43 -07:00
2021-05-03 10:28:00 -07:00
2021-05-11 22:26:28 -07:00
2021-05-06 20:26:35 -07:00
2021-05-11 22:26:28 -07:00
2021-05-03 10:28:00 -07:00
2021-05-15 12:12:34 -07:00
2022-03-16 00:46:57 -07:00
2021-05-06 20:26:35 -07:00
2022-03-16 00:46:57 -07:00
2021-11-11 17:03:11 -08:00
2021-11-06 10:06:05 -07:00
2021-05-03 10:28:00 -07:00
2021-11-06 10:06:05 -07:00
2022-02-22 22:21:48 -08:00
2021-11-06 10:06:05 -07:00
2022-02-07 11:40:27 -08:00
2021-11-06 10:06:05 -07:00
2021-11-06 10:06:05 -07:00
2022-03-26 19:20:49 +00:00
2022-03-26 19:20:49 +00:00
2022-03-26 19:20:49 +00:00
2022-03-26 19:20:49 +00:00
2022-03-16 00:46:57 -07:00
2022-03-17 22:22:24 -07:00
2022-05-18 01:27:06 -07:00
2021-09-08 18:44:03 -07:00
2021-07-17 07:58:02 -07:00
2022-02-01 10:29:13 -08:00
2021-05-11 21:53:36 -07:00
2022-02-01 10:29:13 -08:00
2022-02-22 22:21:48 -08:00
2021-05-11 21:53:36 -07:00
2022-02-01 10:29:13 -08:00
2021-07-15 11:32:55 -07:00
2022-02-02 19:04:22 -08:00
2022-02-02 19:04:22 -08:00
2022-04-01 01:03:51 +00:00
2022-05-16 06:37:57 +00:00
2022-05-18 01:27:06 -07:00
2022-05-18 01:27:06 -07:00
2022-05-18 01:27:06 -07:00
2022-01-29 09:12:07 -08:00
2022-05-18 01:27:06 -07:00
2022-03-22 19:09:50 -07:00
2022-01-03 18:48:38 -08:00
2022-05-18 01:27:06 -07:00
2022-01-03 18:48:38 -08:00
2022-01-03 18:48:38 -08:00
2022-01-03 18:48:38 -08:00
2022-01-03 18:48:38 -08:00
2022-01-03 18:48:38 -08:00
2022-01-03 18:48:38 -08:00
2022-01-03 18:48:38 -08:00
2022-03-17 23:39:36 -07:00
2022-01-03 18:48:38 -08:00
2022-05-18 01:27:06 -07:00
2022-05-18 01:27:06 -07:00
2022-05-18 01:27:06 -07:00
2022-01-25 21:21:13 -08:00
2022-05-18 01:27:06 -07:00
2021-05-06 20:26:35 -07:00
2021-05-03 10:28:00 -07:00
2021-09-28 15:19:02 -07:00
2021-05-03 10:28:00 -07:00
2022-01-25 21:21:13 -08:00
2021-10-17 09:46:44 -07:00
2021-11-06 10:06:05 -07:00
2021-05-17 21:47:11 -07:00
2021-05-15 12:12:34 -07:00
2022-05-25 01:17:55 +00:00
2022-05-25 01:17:55 +00:00
2022-05-25 01:17:55 +00:00
2022-05-25 01:17:55 +00:00
2021-05-03 10:28:00 -07:00
2022-03-19 22:42:59 -07:00
2022-05-16 06:37:57 +00:00
2021-11-20 20:53:25 -08:00
2021-11-20 20:53:25 -08:00
2021-05-03 10:28:00 -07:00
2022-02-21 20:24:13 -08:00
2022-05-02 04:03:28 +00:00
2022-05-25 01:17:55 +00:00
2021-05-06 20:26:35 -07:00
2021-05-03 10:28:00 -07:00
2021-05-06 20:26:35 -07:00
2021-05-06 20:26:35 -07:00
2021-05-03 10:28:00 -07:00
2021-11-03 21:57:37 -07:00
2021-11-11 17:03:11 -08:00
2021-05-06 20:26:35 -07:00
2021-08-20 08:45:10 -07:00
2021-05-11 21:53:36 -07:00
2021-10-01 22:56:50 -07:00
2021-09-14 19:11:39 -07:00
2021-05-11 21:53:36 -07:00
2021-11-16 06:02:04 -08:00
2021-08-20 08:45:10 -07:00
2022-02-22 22:21:48 -08:00
2021-09-14 19:11:39 -07:00
2021-03-18 23:03:27 -07:00
2022-02-01 10:29:13 -08:00
2022-02-01 10:29:13 -08:00
2022-02-01 10:29:13 -08:00
2022-02-01 10:29:13 -08:00
2022-02-16 22:34:48 -08:00
2022-05-23 15:16:25 -07:00
2022-02-01 10:29:13 -08:00
2022-02-01 10:29:13 -08:00
2021-11-16 06:02:04 -08:00
2022-02-01 10:29:13 -08:00
2022-02-01 10:29:13 -08:00
2022-05-16 01:21:30 +00:00
2022-05-18 01:27:06 -07:00
2022-05-18 01:27:06 -07:00
2021-11-11 17:03:11 -08:00