diff --git a/internal/restic/node.go b/internal/restic/node.go index 341d88118..bc64b7fc3 100644 --- a/internal/restic/node.go +++ b/internal/restic/node.go @@ -300,7 +300,7 @@ func (node Node) createSymlinkAt(path string) error { return nil } - if err := os.RemoveAll(path); err != nil && !errors.Is(err, os.ErrNotExist) { + if err := os.Remove(path); err != nil && !errors.Is(err, os.ErrNotExist) { return errors.Wrap(err, "Symlink") }