Skip to content

Commit 17db25e

Browse files
09-backups.md (#2472)
Grammar Check Co-authored-by: sspencerwire <[email protected]>
1 parent 9b8910f commit 17db25e

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docs/books/admin_guide/09-backups.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@ In this chapter you will learn how to back up and restore your data with Linux.
2525

2626
!!! Note
2727

28-
Throughout this chapter the command structures use "device" to specify both a target location for backup, and the source location when restoring. The device can be either external media or a local file. You should get a feel for this as the chapter unfolds, but you can always refer back to this note for clarification if you need to.
28+
Throughout this chapter, the command structures use "device" to specify both a target location for backup and the source location when restoring. The device can be either external media or a local file. You should get a feel for this as the chapter unfolds, but you can always refer back to this note for clarification if you need to.
2929

30-
The backup will answer a need to conserve and restore data in a sure and effective way.
30+
The backup will answer the need to conserve and restore data effectively.
3131

3232
The backup allows you to protect yourself from the following:
3333

3434
* **Destruction**: voluntary or involuntary. Human or technical. Virus, ...
3535
* **Deletion**: voluntary or involuntary. Human or technical. Virus, ...
3636
* **Integrity**: data becomes unusable.
3737

38-
No system is infallible, no human is infallible, so to avoid losing data, it must be backed up to be able to restore after a problem.
38+
No system is infallible, and no human is infallible, so to avoid losing data, it must be backed up so that it can be restored after a problem.
3939

4040
The backup media should be kept in another room (or building) than the server so that a disaster does not destroy the server and the backups.
4141

4242
In addition, the administrator must regularly check that the media are still readable.
4343

4444
## Generalities
4545

46-
There are two principles, the **backup** and the **archive**.
46+
There are two principles: the **backup** and the **archive**.
4747

4848
* The archive destroys the information source after the operation.
4949
* The backup preserves the source of information after the operation.
5050

51-
These operations consist of saving information in a file, on a peripheral or a supported media (tapes, disks, ...).
51+
These operations consist of saving information in a file, on a peripheral, or on a supported media (tapes, disks, etc.).
5252

5353
### The process
5454

55-
Backups require a lot of discipline and rigor from the system administrator. System administrator need to consider the following issues before performing backup operations:
55+
Backups require a lot of discipline and rigor from the system administrator. System administrators need to consider the following issues before performing backup operations:
5656

5757
* What is the appropriate medium?
5858
* What should be backed up?
@@ -84,20 +84,20 @@ In addition to these issues, system administrators should also consider factors
8484

8585
!!! Tip
8686

87-
Before a system change, it can be useful to make a backup. However, there is no point in backing up data every day that is only changed every month.
87+
Before a system change, it can be useful to make a backup. However, there is no point in backing up data every day that only changes every month.
8888

8989
### Restoration methods
9090

91-
Depending on the utilities available, it will be possible to perform several types of restorations.
91+
Depending on the utilities available, performing several types of restorations will be possible.
9292

9393
* **Complete restoration**: trees, ...
9494
* **Selective restoration**: part of tree, files, ...
9595

96-
It is possible to restore a whole backup, but it is also possible to restore only a part of it. However, when restoring a directory, the files created after the backup are not deleted.
96+
It is possible to restore a whole backup or only a part of it. However, when restoring a directory, the files created after the backup are not deleted.
9797

9898
!!! Tip
9999

100-
To recover a directory as it was at the time of the backup, it is necessary to completely delete its contents before launching the restoration.
100+
To recover a directory as it was before the backup, it is necessary to completely delete its contents before launching the restoration.
101101

102102
### The tools and related technologies
103103

@@ -129,7 +129,7 @@ The commands we will use here are `tar` and `cpio`.
129129

130130
### Naming convention
131131

132-
The use of a naming convention makes it possible to quickly target the contents of a backup file and thus avoid hazardous restorations.
132+
The use of a naming convention allows one to quickly target the contents of a backup file and thus avoid hazardous restorations.
133133

134134
* name of the directory;
135135
* utility used;
@@ -138,11 +138,11 @@ The use of a naming convention makes it possible to quickly target the contents
138138

139139
!!! Tip
140140

141-
The name of the backup must be an explicit name.
141+
The name of the backup must be explicit.
142142

143143
!!! Note
144144

145-
The notion of extension under Linux does not exist. In other words, our use of extensions here is for the human operator. If the systems administrator sees a `.tar.gz` or `.tgz` file extension, for instance, then he knows how to deal with the file.
145+
The notion of extension under Linux does not exist. In other words, we use extensions here for the human operator. If the systems administrator sees a `.tar.gz` or `.tgz` file extension, for instance, then he knows how to deal with the file.
146146

147147
### Contents of a backup
148148

@@ -184,15 +184,15 @@ The right questions to ask are:
184184

185185
!!! Warning
186186

187-
Before a restoration, it is important to take time to think about and determine the most appropriate method to avoid mistakes.
187+
Before a restoration, it is important to consider and determine the most appropriate method to avoid mistakes.
188188

189189
Restorations are usually performed after a problem has occurred that needs to be resolved quickly. A poor restoration can, in some cases, make the situation worse.
190190

191191
### Backing up with `tar`
192192

193193
The default utility for creating backups on UNIX systems is the `tar` command. These backups can be compressed by `bzip2`, `xz`, `lzip`, `lzma`, `lzop`, `gzip`, `compress` or `zstd`.
194194

195-
`tar` allows you to extract a single file or a directory from a backup, view its contents or validate its integrity.
195+
`tar` allows you to extract a single file or a directory from a backup, view its contents, or validate its integrity.
196196

197197
#### Estimate the size of a backup
198198

@@ -213,7 +213,7 @@ $ tar cjf - /directory/to/backup/ | wc -c
213213

214214
#### Naming convention for a `tar` backup
215215

216-
Here is an example of a naming convention for a `tar` backup, knowing that the date is to be added to the name.
216+
Here is an example of a naming convention for a `tar` backup, knowing that the date will be added to the name.
217217

218218
| keys | Files | Suffix | Functionality |
219219
|---------|---------|------------------|----------------------------------------------|
@@ -249,7 +249,7 @@ Example:
249249

250250
!!! Tip
251251

252-
The hyphen (`-`) in front of the `tar` keys is not necessary!
252+
The hyphen (`-`) in front of the `tar` keys is unnecessary!
253253

254254
##### Create a backup in absolute mode
255255

@@ -287,7 +287,7 @@ tar cvzf backup.tar.gz dirname/
287287

288288
!!! Note
289289

290-
The `.tgz` extension is an equivalent extension to `.tar.gz`.
290+
The `.tgz` extension is equivalent to `.tar.gz`.
291291

292292
!!! Note
293293

@@ -311,9 +311,9 @@ tar cvfj backup.tar.bz2 dirname/
311311

312312
##### Compression `compress`, `gzip`, `bzip2`, `lzip` and `xz`
313313

314-
Compression, and consequently decompression, will have an impact on resource consumption (time and CPU usage).
314+
Compression, and consequently decompression, will impact resource consumption (time and CPU usage).
315315

316-
Here is a ranking of the compression of a set of text files, from least to most efficient:
316+
Here is a ranking of the compression of a set of text files from least to most efficient:
317317

318318
* compress (`.tar.Z`)
319319
* gzip (`.tar.gz`)

0 commit comments

Comments
 (0)