restic/cmd/restic
Alexander Neumann 82ae942965 backup: Keep mountpoints for --one-file-system
When a file system is mounted at a directory, lstat() returns attributes
of the root node of the mounted file system, including the device ID of
the other file system. The previous code used when --one-file-system is
specified excluded the directory itself because of that.

This commit changes the code so that mountpoints are kept as empty
directories, its attributes set to the root note of the mounted file
system. The behavior mimics `tar`, which does the same.
2020-11-28 17:00:31 +01:00
..
testdata Add prune integration tests for many edge cases 2020-10-06 20:20:05 +02:00
.gitignore Moves files 2017-07-23 14:19:13 +02:00
cleanup.go Replace fmt.Printf/Println/Fprintf with wrapper functions 2020-06-14 11:08:11 +02:00
cmd_backup.go fix(backup): Switch tags cobra type to handle comma-separated list 2020-11-14 15:48:56 +00:00
cmd_cache.go cache/check: Clarify error message when given arguments 2020-10-06 00:08:59 +02:00
cmd_cat.go Use BlobHandle in index methods 2020-11-22 20:41:12 +01:00
cmd_check.go check: Only track data blobs when unused blobs should be reported 2020-11-15 18:43:07 +01:00
cmd_check_test.go Check data subset: check random percentage subset 2020-11-15 18:13:50 +01:00
cmd_copy.go Use BlobHandle in index methods 2020-11-22 20:41:12 +01:00
cmd_debug.go Embed context into ReaderAt 2020-10-09 22:39:07 +02:00
cmd_diff.go diff: Correctly count top-level blobs 2020-11-13 21:11:21 +01:00
cmd_dump.go Pass context to lockRepo 2020-10-09 22:39:06 +02:00
cmd_dump_test.go dump: Add test for splitPath 2020-08-30 16:00:48 +02:00
cmd_find.go Use BlobHandle in index methods 2020-11-22 20:41:12 +01:00
cmd_forget.go Make realistic forget --prune --dryrun 2020-11-03 16:42:21 +01:00
cmd_generate.go Update usage strings to put flags before args 2020-08-28 02:16:22 +00:00
cmd_init.go Allow using --repository-file in init 2020-11-17 20:43:46 +01:00
cmd_key.go Pass context to lockRepo 2020-10-09 22:39:06 +02:00
cmd_list.go Pass context to lockRepo 2020-10-09 22:39:06 +02:00
cmd_ls.go Merge pull request #2630 from MichaelEischer/fix-staticcheck 2020-09-13 16:19:22 +02:00
cmd_migrate.go Pass context to lockRepo 2020-10-09 22:39:06 +02:00
cmd_mount.go Fix #1681 should not try to create the mount point if it doesn't exist, rather return an error 2020-11-15 17:09:30 +01:00
cmd_options.go Add documentation on exit status codes to man pages 2020-02-12 23:09:26 +01:00
cmd_prune.go Make BlobHandle substruct of Blob 2020-11-22 20:41:10 +01:00
cmd_rebuild_index.go Use PackSize in rebuild-index 2020-11-21 22:13:54 +01:00
cmd_recover.go Pass context to lockRepo 2020-10-09 22:39:06 +02:00
cmd_restore.go Merge pull request #2997 from MichaelEischer/faster-excludes 2020-11-02 11:07:21 +01:00
cmd_self_update.go Don't require self-update --output placeholder file 2020-10-03 07:02:23 +02:00
cmd_snapshots.go fix(snapshots): Update help message to better match the 'forget' command one 2020-11-14 15:48:57 +00:00
cmd_snapshots_test.go Regression test for #2979 2020-10-05 15:08:09 +02:00
cmd_stats.go Pass context to lockRepo 2020-10-09 22:39:06 +02:00
cmd_tag.go tags: Tweak description of --add/set/remove options 2020-11-14 22:55:30 +01:00
cmd_unlock.go Add documentation on exit status codes to man pages 2020-02-12 23:09:26 +01:00
cmd_version.go Add documentation on exit status codes to man pages 2020-02-12 23:09:26 +01:00
delete.go Replace restic.Progress with new progress.Counter 2020-11-09 12:12:35 +01:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
exclude.go backup: Keep mountpoints for --one-file-system 2020-11-28 17:00:31 +01:00
exclude_test.go Add tests 2020-11-28 17:00:31 +01:00
find.go pass context to Find / FindSnapshot 2020-10-09 22:37:56 +02:00
flags_test.go Moves files 2017-07-23 14:19:13 +02:00
format.go Dead code removal 2020-08-04 08:38:57 +02:00
global.go Merge pull request #2718 from aawsome/new-cleanup-command 2020-11-05 10:12:19 +01:00
global_debug.go Add profile build flag 2018-04-30 14:19:04 +02:00
global_release.go Add profile build flag 2018-04-30 14:19:04 +02:00
global_test.go Add test for --repository-file 2020-10-01 00:50:27 +02:00
integration_fuse_test.go Fix #1681 should not try to create the mount point if it doesn't exist, rather return an error 2020-11-15 17:09:30 +01:00
integration_helpers_test.go Remove a few unused variables 2020-09-05 10:06:23 +02:00
integration_helpers_unix_test.go integration tests: Redirect directory diff into intermediate buffer 2020-08-29 10:48:44 +02:00
integration_helpers_windows_test.go Remove some unused assignments 2020-10-06 14:55:13 +02:00
integration_test.go Reimplement rebuild-index 2020-11-15 07:05:09 +01:00
local_layout_test.go Support specifying multiple host flags for various commands 2020-02-26 22:17:59 +01:00
lock.go Skip unlocking for nil locks 2020-10-09 22:39:06 +02:00
main.go Don't read password for generate, help or self-update 2020-10-05 19:54:07 +02:00
progress.go Limit progress bar updates to once per second on non-terminal outputs 2020-11-18 22:12:07 +01:00
secondary_repo.go Correct data type for --repo2 option 2020-10-02 21:10:52 +02:00