2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-29 13:22:43 +00:00
restic/internal/restic
Jan Niklas Richter 733519d895 Refactor duplicate code for grouping snapshots
This commit is a followup to the addition of the --group-by flag for the
snapshots command. Adding the grouping code there introduced duplicated
code (the forget command also does grouping). This commit refactors
boths sides to only use shared code.
2019-04-22 14:57:53 +02:00
..
testdata Support time ranges expressed in hours in snapshot retention policies 2018-11-26 14:27:42 +01:00
backend_find_test.go backend: Rework List() 2018-01-21 18:35:37 +01:00
backend_find.go stat: Improve error message for bad snapshot ID (fixes #1933) 2018-08-08 16:49:36 -06:00
backend.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
blob_set.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
blob_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
blob.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
buffer.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
cache.go Automatically exclude current restic cache 2017-09-24 21:54:53 +02:00
config_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
config.go Disable polynomial check for chunker for tests 2018-03-11 20:59:40 +01:00
doc.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
duration_test.go Extend custom Duration granularity to hours and add tests 2018-11-14 17:27:02 +01:00
duration.go Extend custom Duration granularity to hours and add tests 2018-11-14 17:27:02 +01:00
file_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
file.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
find_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
find.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
hardlinks_index_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
hardlinks_index.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
id_int_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
id_test.go restic: Make JSON unmarshal for ID more efficient 2019-04-13 13:38:39 +02:00
id.go restic: Make JSON unmarshal for ID more efficient 2019-04-13 13:38:39 +02:00
ids_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
ids.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
idset_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
idset.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
lock_test.go Fix calls to repo/backend.List() everywhere 2018-01-21 21:15:09 +01:00
lock_unix.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
lock_windows.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
lock.go lock: Ignore invalid lock file 2018-03-05 20:19:57 +01:00
node_darwin.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_freebsd_go111.go Fix build on FreeBSD for Go < 1.12 2019-03-16 20:52:37 +01:00
node_freebsd.go Fix build on FreeBSD for Go < 1.12 2019-03-16 20:52:37 +01:00
node_linux.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_netbsd.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_openbsd.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_solaris.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_test.go restore: Removed legacy restore implementation 2018-10-14 17:37:30 +02:00
node_unix_test.go Fix test 2018-07-14 11:51:34 +02:00
node_unix.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
node_windows.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
node_xattr.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
node.go Fix build on FreeBSD with Go 1.12 2019-03-06 09:41:49 -05:00
progress_unix_with_siginfo.go Handle SIGINFO on all supported platforms 2017-09-02 22:06:31 +03:00
progress_unix.go Add support for illumos/Solaris 2018-03-04 20:11:29 +00:00
progress.go Control progress rate with RESTIC_PROGRESS_FPS env 2017-10-26 14:46:56 +08:00
rand_reader.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
readerat.go Reworked Backend.Load API to retry errors during ongoing download 2018-02-16 21:12:14 -05:00
repository.go Add []byte to repo.LoadAndDecrypt and utils.LoadAll 2019-04-13 13:38:39 +02:00
rewind_reader_test.go Use int64 for the length in the RewindReader 2018-03-04 10:40:42 +01:00
rewind_reader.go Use int64 for the length in the RewindReader 2018-03-04 10:40:42 +01:00
snapshot_find.go backup: Clean target paths before finding parent 2018-04-30 22:03:11 +02:00
snapshot_group.go Refactor duplicate code for grouping snapshots 2019-04-22 14:57:53 +02:00
snapshot_policy_test.go Support time ranges expressed in hours in snapshot retention policies 2018-11-26 14:27:42 +01:00
snapshot_policy.go Support time ranges expressed in hours in snapshot retention policies 2018-11-26 14:27:42 +01:00
snapshot_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
snapshot.go snapshot: Do not modify slice of paths 2018-04-22 11:37:05 +02:00
tag_list.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
testing_test.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
testing.go restic: Use local rand source instead of global one 2018-10-28 14:01:30 +01:00
tree_test.go replace ad-hoc context.TODO() with gopts.ctx, so that cancellation 2017-12-03 07:22:14 -05:00
tree.go tree: Add convenience functions 2018-04-22 11:37:05 +02:00