2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-27 04:43:30 +00:00
restic/internal/archiver
Michael Eischer 2b88cd6eab archiver: Restructure SaveTree to work like SaveDir
SaveTree did not use the TreeSaver but rather managed the tree
collection and upload itself. This prevents using the parallelism
offered by the TreeSaver and duplicates all related code. Using the
TreeSaver can provide some speed-ups as all steps within the backup tree
now rely on FutureNodes. This can be especially relevant for backups
with large amounts of explicitly specified files.

The main difference between SaveTree and SaveDir is, that only the
former can save tree blobs in which nodes have a different name than the
actual file on disk. This is the result of resolving name conflicts
between multiple files with the same name. The filename that must be
used within the snapshot is now passed directly to
restic.NodeFromFileInfo. This ensures that a FutureNode already contains
the correct filename.
2022-10-08 21:28:39 +02:00
..
archiver_test.go archiver: Restructure SaveTree to work like SaveDir 2022-10-08 21:28:39 +02:00
archiver_unix_test.go add go:build headers everywhere 2022-03-28 22:23:47 +02:00
archiver_windows_test.go add go:build headers everywhere 2022-03-28 22:23:47 +02:00
archiver.go archiver: Restructure SaveTree to work like SaveDir 2022-10-08 21:28:39 +02:00
blob_saver_test.go archiver: reduce memory usage for large files 2022-07-23 14:45:07 +02:00
blob_saver.go archiver: reduce memory usage for large files 2022-07-23 14:45:07 +02:00
buffer.go archiver: Remove cleanup goroutine from BufferPool 2022-05-29 17:09:16 +02:00
doc.go archiver: Add high-level documentation 2018-05-12 23:55:54 +02:00
file_saver_test.go archiver: Restructure SaveTree to work like SaveDir 2022-10-08 21:28:39 +02:00
file_saver.go archiver: Restructure SaveTree to work like SaveDir 2022-10-08 21:28:39 +02:00
scanner_test.go archiver: remove unused fileInfo from progress callback 2022-07-23 14:16:23 +02:00
scanner.go archiver: remove unused fileInfo from progress callback 2022-07-23 14:16:23 +02:00
testing_test.go Move internal/fs.TestChdir to internal/test.Chdir 2020-09-17 10:43:33 +02:00
testing.go Merge pull request #3830 from MichaelEischer/cleanup-repo 2022-07-23 10:46:13 +02:00
tree_saver_test.go archiver: Restructure SaveTree to work like SaveDir 2022-10-08 21:28:39 +02:00
tree_saver.go archiver: Restructure SaveTree to work like SaveDir 2022-10-08 21:28:39 +02:00
tree_test.go Remove a few redundant type specifiers 2020-10-06 14:55:13 +02:00
tree.go archiver/tree: Introduce functions Leaf() and NodeNames() 2021-01-29 11:11:28 +01:00