1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-01-03 05:35:43 +00:00
restic/internal
Jeremy Fleischman ace495ea99
fs: error if a symlink points at a file that is not included in the snapshot
This implements @fd0's first idea here:
<https://github.com/restic/restic/issues/542#issuecomment-328263959>.

> First, I think it may be a good idea to print a warning message when a
> symlinks is saved and the target of the symlink exists and is not
> included in the backup. This way, users will know that some data
> referenced in the snapshot is not available upon restore.

Which I wholeheartedly agree with.

In the interest of keeping restic's cli simple, and keeping people's
data safe, I've opted to not make this configurable. I suppose you could
call this a breaking change, but I personally consider it a fix: restic
shouldn't claim it has successfully backed up a directory unless it can
actually recreate the structure of that directory. IMO, it's better to
fail-fast than to claim success, only to greatly disappoint someone
later on.
2024-12-20 03:18:10 -08:00
..
archiver fs: error if a symlink points at a file that is not included in the snapshot 2024-12-20 03:18:10 -08:00
backend Error if AZURE_ACCOUNT_NAME not set 2024-11-13 08:02:22 -07:00
bloblru Fix typos 2024-07-03 20:02:06 +02:00
checker add proper constants for node type 2024-08-31 18:20:01 +02:00
crypto crypto: cleanup ciphertext verification error 2024-06-05 22:33:20 +02:00
debug improve fprintf related error handling 2024-11-01 17:07:43 +01:00
dump Merge pull request #5054 from phillipp/dump-compress-zip 2024-10-16 19:17:47 +00:00
errors errors, fs: Replace CombineErrors with stdlib Join 2024-10-05 10:56:40 +02:00
feature drop support for s3legacy layout 2024-08-31 17:25:24 +02:00
filter move include/exclude options to filter package 2024-08-31 18:04:07 +02:00
fs Refactor extended attributes and security descriptor helpers to use go-winio (#5040) 2024-12-09 21:48:38 +01:00
fuse fuse: test that the same fs.Node is used for the same file 2024-09-14 18:11:44 +02:00
migrations drop support for s3legacy layout 2024-08-31 17:25:24 +02:00
options
repository internal/restic: Use IDSet.Clone + use maps package 2024-10-03 21:14:29 +02:00
restic Merge pull request #5143 from MichaelEischer/fs-handle-interface 2024-11-30 15:29:31 +01:00
restorer ui: restore --delete indicates number of deleted files (#5100) 2024-12-01 15:29:11 +01:00
selfupdate
test
textfile
ui ui: restore --delete indicates number of deleted files (#5100) 2024-12-01 15:29:11 +01:00
walker ls: proper error handling if output is not possible 2024-11-01 17:07:43 +01:00