restic/cmd/restic
Michael Eischer 8c4caf09a8 repair snapshots: Do not rename repaired files
The files in a tree must be sorted in lexical order. However, this
cannot be guaranteed when appending a filename suffix. For two files

file, file.rep

where "file" is broken, this would result in

file.repaired, file.rep

which is no longer sorted.

In addition, adding a filename suffix is also prone to filename
collisions which would require a rather complex search for a
collision-free name in order to work reliably.
2023-05-01 15:19:36 +02:00
..
testdata
.gitignore
cleanup.go Print stacktrace in SIGINT handler if RESTIC_DEBUG_STACKTRACE_SIGINT set 2023-04-23 15:50:40 +02:00
cmd_backup.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_backup_test.go test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
cmd_cache.go
cmd_cat.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
cmd_check.go Rename 'rebuild-index' to 'repair index' 2023-05-01 15:16:44 +02:00
cmd_check_test.go
cmd_copy.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_debug.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
cmd_diff.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
cmd_dump.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_dump_test.go
cmd_find.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_forget.go Merge pull request #4234 from thndrbrrr/forget-opts-neg1-means-forever-issue-2565 2023-04-14 23:18:47 +02:00
cmd_forget_test.go forget: Prevent neg. values in --keep-within* opts 2023-03-14 19:20:03 -07:00
cmd_generate.go generate: write progress to STDOUT if this is a terminal 2023-04-12 22:39:59 +02:00
cmd_init.go init: Add --copy-chunker-params verbose msg 2023-04-09 14:59:07 -07:00
cmd_key.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
cmd_list.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
cmd_ls.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_ls_test.go
cmd_migrate.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
cmd_mount.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_options.go
cmd_prune.go Rename 'rebuild-index' to 'repair index' 2023-05-01 15:16:44 +02:00
cmd_recover.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
cmd_repair.go Rename 'rebuild-index' to 'repair index' 2023-05-01 15:16:44 +02:00
cmd_repair_index.go Rename 'rebuild-index' to 'repair index' 2023-05-01 15:16:44 +02:00
cmd_repair_snapshots.go repair snapshots: Do not rename repaired files 2023-05-01 15:19:36 +02:00
cmd_restore.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_rewrite.go rewrite: prepare for code sharing with rewrite snapshots 2023-05-01 15:19:24 +02:00
cmd_self_update.go Reinstate selfupdate tag to make builds without self-update work 2022-12-26 21:46:22 +04:00
cmd_snapshots.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_snapshots_test.go
cmd_stats.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_tag.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
cmd_unlock.go
cmd_version.go
delete.go
doc.go
exclude.go Cleanup exclude pattern collection 2022-11-12 19:55:22 +01:00
exclude_test.go test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
find.go cmd, restic: Refactor and fix snapshot filtering 2023-04-13 22:51:45 +02:00
flags_test.go Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
format.go
global.go Merge pull request #4306 from MichaelEischer/document-restic-compression-env 2023-04-30 18:26:10 +02:00
global_debug.go
global_release.go
global_test.go test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
integration_filter_pattern_test.go Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
integration_fuse_test.go
integration_helpers_test.go Replace most usages of ioutil with the underlying function 2022-12-02 19:36:43 +01:00
integration_helpers_unix_test.go Replace usages of ioutil.ReadDir 2022-12-02 19:54:27 +01:00
integration_helpers_windows_test.go Replace usages of ioutil.ReadDir 2022-12-02 19:54:27 +01:00
integration_rewrite_test.go rewrite: Add tests for further ways to use the command 2022-11-12 19:55:22 +01:00
integration_test.go Rename 'rebuild-index' to 'repair index' 2023-05-01 15:16:44 +02:00
local_layout_test.go
lock.go Add a global option --retry-lock 2023-04-07 16:24:14 +02:00
lock_test.go Increase timeouts for lock refresh tests 2023-04-22 12:45:59 +02:00
main.go Don't buffer the golang log output when running tests 2022-12-10 16:08:27 +01:00
progress.go progress: extract progress updating into Updater struct 2023-01-14 01:13:08 +01:00
secondary_repo.go
secondary_repo_test.go test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00