diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 25c5a8ad1..f1f355c53 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -585,7 +585,7 @@ Sometimes, it can be useful to directly save the output of a program, for exampl ``mysqldump`` so that the SQL can later be restored. Restic supports this mode of operation; just supply the option ``--stdin-from-command`` when using the ``backup`` action, and write the command in place of the files/directories. To prevent -restic from interpreting the arguments for the commmand, make sure to add ``--`` before +restic from interpreting the arguments for the command, make sure to add ``--`` before the command starts: .. code-block:: console diff --git a/internal/restorer/fileswriter_test.go b/internal/restorer/fileswriter_test.go index c69847927..9ea8767b8 100644 --- a/internal/restorer/fileswriter_test.go +++ b/internal/restorer/fileswriter_test.go @@ -49,7 +49,7 @@ func TestFilesWriterRecursiveOverwrite(t *testing.T) { // must error if recursive delete is not allowed w := newFilesWriter(1, false) err := w.writeToFile(path, []byte{1}, 0, 2, false) - rtest.Assert(t, errors.Is(err, notEmptyDirError()), "unexepected error got %v", err) + rtest.Assert(t, errors.Is(err, notEmptyDirError()), "unexpected error got %v", err) rtest.Equals(t, 0, len(w.buckets[0].files)) // must replace directory diff --git a/internal/restorer/restorer_windows.go b/internal/restorer/restorer_windows.go index 72337d8ae..9ddc0a932 100644 --- a/internal/restorer/restorer_windows.go +++ b/internal/restorer/restorer_windows.go @@ -8,6 +8,6 @@ import "strings" // toComparableFilename returns a filename suitable for equality checks. On Windows, it returns the // uppercase version of the string. On all other systems, it returns the unmodified filename. func toComparableFilename(path string) string { - // apparently NTFS internally uppercases filenames for comparision + // apparently NTFS internally uppercases filenames for comparison return strings.ToUpper(path) }