Skip to content

Commit

Permalink
Merge pull request #4586 from Gelma/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
MichaelEischer committed Dec 23, 2023
2 parents e96d1ee + 53ebe91 commit 30e6ed0
Show file tree
Hide file tree
Showing 49 changed files with 72 additions and 73 deletions.
31 changes: 15 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2684,7 +2684,7 @@ Details
* Enhancement #3106: Parallelize scan of snapshot content in `copy` and `prune`

The `copy` and `prune` commands used to traverse the directories of snapshots one by one to find
used data. This snapshot traversal is now parallized which can speed up this step several
used data. This snapshot traversal is now parallelized which can speed up this step several
times.

In addition the `check` command now reports how many snapshots have already been processed.
Expand Down Expand Up @@ -2784,7 +2784,7 @@ Details

* Bugfix #1756: Mark repository files as read-only when using the local backend

Files stored in a local repository were marked as writeable on the filesystem for non-Windows
Files stored in a local repository were marked as writable on the filesystem for non-Windows
systems, which did not prevent accidental file modifications outside of restic. In addition,
the local backend did not work with certain filesystems and network mounts which do not permit
modifications of file permissions.
Expand Down Expand Up @@ -2874,8 +2874,7 @@ Details
an exclusive lock through a filesystem snapshot. Restic was unable to backup those files
before. This update enables backing up these files.

This needs to be enabled explicitely using the --use-fs-snapshot option of the backup
command.
This needs to be enabled explicitly using the --use-fs-snapshot option of the backup command.

https://github.com/restic/restic/issues/340
https://github.com/restic/restic/pull/2274
Expand Down Expand Up @@ -3079,7 +3078,7 @@ Details

* Bugfix #2668: Don't abort the stats command when data blobs are missing

Runing the stats command in the blobs-per-file mode on a repository with missing data blobs
Running the stats command in the blobs-per-file mode on a repository with missing data blobs
previously resulted in a crash.

https://github.com/restic/restic/pull/2668
Expand Down Expand Up @@ -3454,7 +3453,7 @@ Details
check will be disabled if the --ignore-inode flag was given.

If this change causes problems for you, please open an issue, and we can look in to adding a
seperate flag to disable just the ctime check.
separate flag to disable just the ctime check.

https://github.com/restic/restic/issues/2179
https://github.com/restic/restic/pull/2212
Expand Down Expand Up @@ -3826,7 +3825,7 @@ Details
* Enhancement #1876: Display reason why forget keeps snapshots

We've added a column to the list of snapshots `forget` keeps which details the reasons to keep a
particuliar snapshot. This makes debugging policies for forget much easier. Please remember
particular snapshot. This makes debugging policies for forget much easier. Please remember
to always try things out with `--dry-run`!

https://github.com/restic/restic/pull/1876
Expand Down Expand Up @@ -4139,7 +4138,7 @@ Summary
* Enh #1665: Improve cache handling for `restic check`
* Enh #1709: Improve messages `restic check` prints
* Enh #1721: Add `cache` command to list cache dirs
* Enh #1735: Allow keeping a time range of snaphots
* Enh #1735: Allow keeping a time range of snapshots
* Enh #1758: Allow saving OneDrive folders in Windows
* Enh #1782: Use default AWS credentials chain for S3 backend

Expand Down Expand Up @@ -4339,7 +4338,7 @@ Details
https://github.com/restic/restic/issues/1721
https://github.com/restic/restic/pull/1749

* Enhancement #1735: Allow keeping a time range of snaphots
* Enhancement #1735: Allow keeping a time range of snapshots

We've added the `--keep-within` option to the `forget` command. It instructs restic to keep
all snapshots within the given duration since the newest snapshot. For example, running
Expand Down Expand Up @@ -4440,7 +4439,7 @@ Details
HTTP) and returning an error when the file already exists.

This is not accurate, the file could have been created between the HTTP request testing for it,
and when writing starts, so we've relaxed this requeriment, which saves one additional HTTP
and when writing starts, so we've relaxed this requirement, which saves one additional HTTP
request per newly added file.

https://github.com/restic/restic/pull/1623
Expand All @@ -4463,7 +4462,7 @@ restic users. The changes are ordered by importance.
Summary
-------

* Fix #1506: Limit bandwith at the http.RoundTripper for HTTP based backends
* Fix #1506: Limit bandwidth at the http.RoundTripper for HTTP based backends
* Fix #1512: Restore directory permissions as the last step
* Fix #1528: Correctly create missing subdirs in data/
* Fix #1589: Complete intermediate index upload
Expand All @@ -4484,7 +4483,7 @@ Summary
Details
-------

* Bugfix #1506: Limit bandwith at the http.RoundTripper for HTTP based backends
* Bugfix #1506: Limit bandwidth at the http.RoundTripper for HTTP based backends

https://github.com/restic/restic/issues/1506
https://github.com/restic/restic/pull/1511
Expand Down Expand Up @@ -4537,8 +4536,8 @@ Details
* Bugfix #1595: Backup: Remove bandwidth display

This commit removes the bandwidth displayed during backup process. It is misleading and
seldomly correct, because it's neither the "read bandwidth" (only for the very first backup)
nor the "upload bandwidth". Many users are confused about (and rightly so), c.f. #1581, #1033,
seldom correct, because it's neither the "read bandwidth" (only for the very first backup) nor
the "upload bandwidth". Many users are confused about (and rightly so), c.f. #1581, #1033,
#1591

We'll eventually replace this display with something more relevant when the new archiver code
Expand Down Expand Up @@ -4807,7 +4806,7 @@ Details

We've added a local cache for metadata so that restic doesn't need to load all metadata
(snapshots, indexes, ...) from the repo each time it starts. By default the cache is active, but
there's a new global option `--no-cache` that can be used to disable the cache. By deafult, the
there's a new global option `--no-cache` that can be used to disable the cache. By default, the
cache a standard cache folder for the OS, which can be overridden with `--cache-dir`. The cache
will automatically populate, indexes and snapshots are saved as they are loaded. Cache
directories for repos that haven't been used recently can automatically be removed by restic
Expand Down Expand Up @@ -4893,7 +4892,7 @@ Details

* Enhancement #1319: Make `check` print `no errors found` explicitly

The `check` command now explicetly prints `No errors were found` when no errors could be found.
The `check` command now explicitly prints `No errors were found` when no errors could be found.

https://github.com/restic/restic/issues/1303
https://github.com/restic/restic/pull/1319
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ uploading it somewhere or post only the parts that are really relevant.
If restic gets stuck, please also include a stacktrace in the description.
On non-Windows systems, you can send a SIGQUIT signal to restic or press
`Ctrl-\` to achieve the same result. This causes restic to print a stacktrace
and then exit immediatelly. This will not damage your repository, however,
and then exit immediately. This will not damage your repository, however,
it might be necessary to manually clean up stale lock files using
`restic unlock`.

Expand Down
2 changes: 1 addition & 1 deletion changelog/0.10.0_2020-09-19/pull-2668
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Bugfix: Don't abort the stats command when data blobs are missing

Runing the stats command in the blobs-per-file mode on a repository with
Running the stats command in the blobs-per-file mode on a repository with
missing data blobs previously resulted in a crash.

https://github.com/restic/restic/pull/2668
2 changes: 1 addition & 1 deletion changelog/0.11.0_2020-11-05/issue-1756
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Bugfix: Mark repository files as read-only when using the local backend

Files stored in a local repository were marked as writeable on the
Files stored in a local repository were marked as writable on the
filesystem for non-Windows systems, which did not prevent accidental file
modifications outside of restic. In addition, the local backend did not work
with certain filesystems and network mounts which do not permit modifications
Expand Down
2 changes: 1 addition & 1 deletion changelog/0.11.0_2020-11-05/issue-340
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ another process using an exclusive lock through a filesystem snapshot. Restic
was unable to backup those files before. This update enables backing up these
files.

This needs to be enabled explicitely using the --use-fs-snapshot option of the
This needs to be enabled explicitly using the --use-fs-snapshot option of the
backup command.

https://github.com/restic/restic/issues/340
Expand Down
2 changes: 1 addition & 1 deletion changelog/0.12.0_2021-02-14/pull-3106
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Enhancement: Parallelize scan of snapshot content in `copy` and `prune`

The `copy` and `prune` commands used to traverse the directories of
snapshots one by one to find used data. This snapshot traversal is
now parallized which can speed up this step several times.
now parallelized which can speed up this step several times.

In addition the `check` command now reports how many snapshots have
already been processed.
Expand Down
2 changes: 1 addition & 1 deletion changelog/0.8.0_2017-11-26/pull-1040
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Enhancement: Add local metadata cache
We've added a local cache for metadata so that restic doesn't need to load
all metadata (snapshots, indexes, ...) from the repo each time it starts. By
default the cache is active, but there's a new global option `--no-cache`
that can be used to disable the cache. By deafult, the cache a standard
that can be used to disable the cache. By default, the cache a standard
cache folder for the OS, which can be overridden with `--cache-dir`. The
cache will automatically populate, indexes and snapshots are saved as they
are loaded. Cache directories for repos that haven't been used recently can
Expand Down
2 changes: 1 addition & 1 deletion changelog/0.8.0_2017-11-26/pull-1319
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Enhancement: Make `check` print `no errors found` explicitly

The `check` command now explicetly prints `No errors were found` when no errors
The `check` command now explicitly prints `No errors were found` when no errors
could be found.

https://github.com/restic/restic/pull/1319
Expand Down
2 changes: 1 addition & 1 deletion changelog/0.8.2_2018-02-17/issue-1506
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bugfix: Limit bandwith at the http.RoundTripper for HTTP based backends
Bugfix: Limit bandwidth at the http.RoundTripper for HTTP based backends

https://github.com/restic/restic/issues/1506
https://github.com/restic/restic/pull/1511
2 changes: 1 addition & 1 deletion changelog/0.8.2_2018-02-17/pull-1595
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Bugfix: backup: Remove bandwidth display

This commit removes the bandwidth displayed during backup process. It is
misleading and seldomly correct, because it's neither the "read
misleading and seldom correct, because it's neither the "read
bandwidth" (only for the very first backup) nor the "upload bandwidth".
Many users are confused about (and rightly so), c.f. #1581, #1033, #1591

Expand Down
2 changes: 1 addition & 1 deletion changelog/0.8.3_2018-02-26/pull-1623
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ that means making a request (e.g. via HTTP) and returning an error when the
file already exists.

This is not accurate, the file could have been created between the HTTP request
testing for it, and when writing starts, so we've relaxed this requeriment,
testing for it, and when writing starts, so we've relaxed this requirement,
which saves one additional HTTP request per newly added file.

https://github.com/restic/restic/pull/1623
2 changes: 1 addition & 1 deletion changelog/0.9.0_2018-05-21/pull-1735
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Enhancement: Allow keeping a time range of snaphots
Enhancement: Allow keeping a time range of snapshots

We've added the `--keep-within` option to the `forget` command. It instructs
restic to keep all snapshots within the given duration since the newest
Expand Down
2 changes: 1 addition & 1 deletion changelog/0.9.3_2018-10-13/pull-1876
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Enhancement: Display reason why forget keeps snapshots

We've added a column to the list of snapshots `forget` keeps which details the
reasons to keep a particuliar snapshot. This makes debugging policies for
reasons to keep a particular snapshot. This makes debugging policies for
forget much easier. Please remember to always try things out with `--dry-run`!

https://github.com/restic/restic/pull/1876
2 changes: 1 addition & 1 deletion changelog/0.9.6_2019-11-22/issue-2179
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file should be noticed, and the modified file will be backed up. The ctime check
will be disabled if the --ignore-inode flag was given.

If this change causes problems for you, please open an issue, and we can look in
to adding a seperate flag to disable just the ctime check.
to adding a separate flag to disable just the ctime check.

https://github.com/restic/restic/issues/2179
https://github.com/restic/restic/pull/2212
2 changes: 1 addition & 1 deletion cmd/restic/cmd_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func selectPacksByBucket(allPacks map[restic.ID]int64, bucket, totalBuckets uint
return packs
}

// selectRandomPacksByPercentage selects the given percentage of packs which are randomly choosen.
// selectRandomPacksByPercentage selects the given percentage of packs which are randomly chosen.
func selectRandomPacksByPercentage(allPacks map[restic.ID]int64, percentage float64) map[restic.ID]int64 {
packCount := len(allPacks)
packsToCheck := int(float64(packCount) * (percentage / 100.0))
Expand Down
6 changes: 3 additions & 3 deletions cmd/restic/cmd_check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestSelectPacksByBucket(t *testing.T) {
var testPacks = make(map[restic.ID]int64)
for i := 1; i <= 10; i++ {
id := restic.NewRandomID()
// ensure relevant part of generated id is reproducable
// ensure relevant part of generated id is reproducible
id[0] = byte(i)
testPacks[id] = 0
}
Expand Down Expand Up @@ -124,7 +124,7 @@ func TestSelectRandomPacksByPercentage(t *testing.T) {
}

func TestSelectNoRandomPacksByPercentage(t *testing.T) {
// that the a repository without pack files works
// that the repository without pack files works
var testPacks = make(map[restic.ID]int64)
selectedPacks := selectRandomPacksByPercentage(testPacks, 10.0)
rtest.Assert(t, len(selectedPacks) == 0, "Expected 0 selected packs")
Expand Down Expand Up @@ -158,7 +158,7 @@ func TestSelectRandomPacksByFileSize(t *testing.T) {
}

func TestSelectNoRandomPacksByFileSize(t *testing.T) {
// that the a repository without pack files works
// that the repository without pack files works
var testPacks = make(map[restic.ID]int64)
selectedPacks := selectRandomPacksByFileSize(testPacks, 10, 500)
rtest.Assert(t, len(selectedPacks) == 0, "Expected 0 selected packs")
Expand Down
2 changes: 1 addition & 1 deletion cmd/restic/cmd_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func tryRepairWithBitflip(ctx context.Context, key *crypto.Key, input []byte, by
})
err := wg.Wait()
if err != nil {
panic("all go rountines can only return nil")
panic("all go routines can only return nil")
}

if !found {
Expand Down
8 changes: 4 additions & 4 deletions cmd/restic/cmd_prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func packInfoFromIndex(ctx context.Context, idx restic.MasterIndex, usedBlobs re
})

// if duplicate blobs exist, those will be set to either "used" or "unused":
// - mark only one occurence of duplicate blobs as used
// - mark only one occurrence of duplicate blobs as used
// - if there are already some used blobs in a pack, possibly mark duplicates in this pack as "used"
// - if there are no used blobs in a pack, possibly mark duplicates as "unused"
if hasDuplicates {
Expand All @@ -415,7 +415,7 @@ func packInfoFromIndex(ctx context.Context, idx restic.MasterIndex, usedBlobs re
bh := blob.BlobHandle
count, ok := usedBlobs[bh]
// skip non-duplicate, aka. normal blobs
// count == 0 is used to mark that this was a duplicate blob with only a single occurence remaining
// count == 0 is used to mark that this was a duplicate blob with only a single occurrence remaining
if !ok || count == 1 {
return
}
Expand All @@ -424,7 +424,7 @@ func packInfoFromIndex(ctx context.Context, idx restic.MasterIndex, usedBlobs re
size := uint64(blob.Length)
switch {
case ip.usedBlobs > 0, count == 0:
// other used blobs in pack or "last" occurence -> transition to used
// other used blobs in pack or "last" occurrence -> transition to used
ip.usedSize += size
ip.usedBlobs++
ip.unusedSize -= size
Expand All @@ -434,7 +434,7 @@ func packInfoFromIndex(ctx context.Context, idx restic.MasterIndex, usedBlobs re
stats.blobs.used++
stats.size.duplicate -= size
stats.blobs.duplicate--
// let other occurences remain marked as unused
// let other occurrences remain marked as unused
usedBlobs[bh] = 1
default:
// remain unused and decrease counter
Expand Down
2 changes: 1 addition & 1 deletion cmd/restic/cmd_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func PrintSnapshotGroupHeader(stdout io.Writer, groupKeyJSON string) error {
return nil
}

// Snapshot helps to print Snaphots as JSON with their ID included.
// Snapshot helps to print Snapshots as JSON with their ID included.
type Snapshot struct {
*restic.Snapshot

Expand Down
2 changes: 1 addition & 1 deletion cmd/restic/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func init() {
f.StringVarP(&globalOptions.KeyHint, "key-hint", "", "", "`key` ID of key to try decrypting first (default: $RESTIC_KEY_HINT)")
f.StringVarP(&globalOptions.PasswordCommand, "password-command", "", "", "shell `command` to obtain the repository password from (default: $RESTIC_PASSWORD_COMMAND)")
f.BoolVarP(&globalOptions.Quiet, "quiet", "q", false, "do not output comprehensive progress report")
// use empty paremeter name as `-v, --verbose n` instead of the correct `--verbose=n` is confusing
// use empty parameter name as `-v, --verbose n` instead of the correct `--verbose=n` is confusing
f.CountVarP(&globalOptions.Verbose, "verbose", "v", "be verbose (specify multiple times or a level using --verbose=n``, max level/times is 2)")
f.BoolVar(&globalOptions.NoLock, "no-lock", false, "do not lock the repository, this allows some operations on read-only repositories")
f.DurationVar(&globalOptions.RetryLock, "retry-lock", 0, "retry to lock the repository if it is already locked, takes a value like 5m or 2h (default: no retries)")
Expand Down
2 changes: 1 addition & 1 deletion doc/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $ restic backup --exclude "~/documents" ~
This command will result in a complete backup of the current logged in user's home directory and it won't exclude the folder ``~/documents/`` - which is not what the user wanted to achieve.
The problem is how the path to ``~/documents`` is passed to restic.

In order to spot an issue like this, you can make use of the following ruby command preceding your restic command.
In order to spot an issue like this, you can make use of the following ruby command preceeding your restic command.

::

Expand Down
2 changes: 1 addition & 1 deletion doc/fish-completion.fish
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function __restic_clear_perform_completion_once_result
__restic_debug ""
__restic_debug "========= clearing previously set __restic_perform_completion_once_result variable =========="
set --erase __restic_perform_completion_once_result
__restic_debug "Succesfully erased the variable __restic_perform_completion_once_result"
__restic_debug "Successfully erased the variable __restic_perform_completion_once_result"
end

function __restic_requires_order_preservation
Expand Down
2 changes: 1 addition & 1 deletion helpers/prepare-release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func readdir(dir string) []string {
}

func sha256sums(inputDir, outputFile string) {
msg("runnnig sha256sum in %v", inputDir)
msg("running sha256sum in %v", inputDir)

filenames := readdir(inputDir)

Expand Down
2 changes: 1 addition & 1 deletion internal/archiver/archiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (arch *Archiver) SaveDir(ctx context.Context, snPath string, dir string, fi

// FutureNode holds a reference to a channel that returns a FutureNodeResult
// or a reference to an already existing result. If the result is available
// immediatelly, then storing a reference directly requires less memory than
// immediately, then storing a reference directly requires less memory than
// using the indirection via a channel.
type FutureNode struct {
ch <-chan futureNodeResult
Expand Down
2 changes: 1 addition & 1 deletion internal/backend/b2/b2.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type b2Backend struct {
canDelete bool
}

// Billing happens in 1000 item granlarity, but we are more interested in reducing the number of network round trips
// Billing happens in 1000 item granularity, but we are more interested in reducing the number of network round trips
const defaultListMaxItems = 10 * 1000

// ensure statically that *b2Backend implements backend.Backend.
Expand Down
2 changes: 1 addition & 1 deletion internal/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Backend interface {
// repository.
Location() string

// Connections returns the maxmimum number of concurrent backend operations.
// Connections returns the maximum number of concurrent backend operations.
Connections() uint

// Hasher may return a hash function for calculating a content hash for the backend
Expand Down

0 comments on commit 30e6ed0

Please sign in to comment.