Skip to content

Commit 13eba54

Browse files
authored
More doc improvements in mysqldump-secure.conf
1 parent 6eafc0f commit 13eba54

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

etc/mysqldump-secure.conf

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
# 2. If you remove the variable, mysqldump-secure will error
2121
# to stderr and abort.
2222
#
23-
# The above described behavior is a security mechanism for critical
24-
# configurations. For example if you have removed the directive that
23+
# The above-described behavior is a security mechanism for critical
24+
# configurations. For example, if you have removed the directive that
2525
# sets whether or not to encrypt the backups, then it is not sure
2626
# whether or not you are paranoid about your data and mysqldump-secure
2727
# will abort immediately until you have told it correctly whether or
@@ -78,7 +78,7 @@ DUMP_FILE_PRE="$(date '+%Y-%m-%d')_$(date '+%H-%M')__"
7878
#
7979
# NOTE: The file is directly written with this permission (via umask)
8080
# instead of applying chmod afterwards. This makes sure that there are no
81-
# race-conditions during the dump that someone can view the contens before the
81+
# race-conditions during the dump that someone can view the contents before the
8282
# chmod changes.
8383
#
8484
# Default value: "0400"
@@ -105,7 +105,7 @@ DUMP_FILE_CHMOD="0400"
105105
# Instead use a *.cnf file with a host, user and password combination.
106106
#
107107
# NOTE: No other default *.cnf files will be included for connections/dumping.
108-
# This is the only file that will be read my mysqldump-secure.
108+
# This is the only file that will be read by mysqldump-secure.
109109
#
110110
# NOTE: Only host, user, pass, port and socket directives are allowed.
111111
# All other options are specified in this configuration file.
@@ -126,7 +126,7 @@ MYSQL_CNF_FILE="/etc/mysqldump-secure.cnf"
126126
############################################################
127127

128128
# If this is set to true, an SSL connection is required and
129-
# the program will abort, if the connection is not secured.
129+
# the program will abort if the connection is not secured.
130130
#
131131
# Turn it on to force SSL and die for plain connections.
132132
# Turn it off, to do plain-text connection (e.g.: from localhost)
@@ -177,7 +177,7 @@ MYSQL_SSL_CA_PEM="/path/to/ca.pem"
177177

178178
#
179179
# By default, all existing mysql databases will be backed up
180-
# without having to explicitly specifying them.
180+
# without having to explicitly specify them.
181181
#
182182
# You can however fine-adjust it by ignoring certain databases
183183
# from the backup procedure below.
@@ -194,7 +194,7 @@ MYSQL_SSL_CA_PEM="/path/to/ca.pem"
194194
# You can ignore all databases here and explicitly only require
195195
# the ones you actually want to dump.
196196
# If you ignore 'mysql' and require 'mysql',
197-
# it wil be back-upped.
197+
# it will be back-upped.
198198
#
199199
# Note:
200200
# -----
@@ -214,23 +214,23 @@ IGNORE="information_schema performance_schema"
214214

215215

216216

217-
# Opt-in check (Require)
217+
# Opt-in check (require)
218218
#
219219
# A space-separated list of databases that are explicitly required.
220220
#
221221
# If any of the specified required databases is not existent
222222
# the script will generate an error after finishing (stderr, exit code and inside the logfile).
223223
#
224224
# Additionally, this information is also used by the nagios plugin and will automatically
225-
# throw an error in nagios when any of the below specified databases were not found and/or not dumped.
225+
# throw an error in nagios when any of the below-specified databases were not found and/or not dumped.
226226
#
227227
# NOTE: The here specified databases are not guaranteed to be dumped,
228228
# because they might not even exist, it is rather
229229
# a method of letting you know, that they could not be dumped.
230230
#
231231
# NOTE: Use this to overwrite any ignored databases.
232232
# You could for example ignore all databases and only
233-
# require the once you desire here.
233+
# require the ones you desire here.
234234
#
235235
# Default value: "" <-- do not require anything
236236
REQUIRE="mysql"
@@ -325,14 +325,14 @@ MYSQL_OPTS_QUICK_MIN_SIZE=200
325325

326326

327327
#
328-
# Case 1: Only InnoDB tables inside current DB
328+
# Case 1: Only InnoDB tables inside the current DB
329329
#
330330
# If the current dumped database only contains InnoDB tables,
331331
# this database is then dumped with the '--single-transaction' option.
332332
#
333333
# With this option turned on, all tables inside this database will be dumped consistently.
334334
# If there was any INSERT, ALTER (or other changes on the tables during the period of backup
335-
# by another program/process), these changes will not go into dump and you will end up
335+
# by another program/process), these changes will not go into the dump and you will end up
336336
# with a fully consistent dump from the time it was started doing the backup.
337337
#
338338
# If however the current database contains at least one table which is not using the InnoDB
@@ -343,7 +343,7 @@ MYSQL_OPTS_QUICK_MIN_SIZE=200
343343
# It is safe and recommended to leave this option turned on!
344344
#
345345
# Note:
346-
# Again, this applies only to databases which only have InnoDB tables.
346+
# Again, this applies only to databases that only have InnoDB tables.
347347
#
348348
# Values:
349349
# -------
@@ -368,13 +368,13 @@ CONSISTENT_DUMP_ONLY_INNODB=1
368368
# However, every INSERT, ALTER (or other changing sql function) to tables inside this database
369369
# will be blocked (and queued) for the time of the dump.
370370
# So if you have a web application for example that is receiving lots of INSERTs, choose a time
371-
# with least visitors, because the application will be blocked during the backup time.
371+
# with the least visitors, because the application will be blocked during the backup time.
372372
#
373373
#
374-
# Solution 1: Convert all your databases to InnoDB
374+
# Solution 1: Convert all your databases to InnoDB.
375375
# --> and ignore this option
376376
#
377-
# Solution 2: Choose a time where less or no changes to that database are expected
377+
# Solution 2: Choose a time when less or no changes to that database are expected.
378378
# --> and set CONSISTENT_DUMP_OTHERS=1
379379
#
380380
# Solution 3: Turn off this feature and live without consistent dumps.
@@ -412,13 +412,13 @@ CONSISTENT_DUMP_NO_INNODB=1
412412
# However, every INSERT, ALTER (or other changing sql function) to tables inside this database
413413
# will be blocked (and queued) for the time of the dump.
414414
# So if you have a web application for example that is receiving lots of INSERTs, choose a time
415-
# with least visitors, because the current dumped database will be read-only
415+
# with the least visitors, because the current dumped database will be read-only
416416
# (but all queries are queued) during the backup time.
417417
#
418-
# Solution 1: Convert all your tables in your databases to InnoDB
418+
# Solution 1: Convert all your tables in your databases to InnoDB.
419419
# --> and ignore this option
420420
#
421-
# Solution 2: Choose a time where less or no changes to that database are expected
421+
# Solution 2: Choose a time where less or no changes to that database are expected.
422422
# --> and set CONSISTENT_DUMP_OTHERS=1
423423
#
424424
# Solution 3: Use a Master/Slave setup and always backup from slave
@@ -509,14 +509,14 @@ COMPRESS=1
509509
# NOTE: No default values can be provided and the program will simply
510510
# disable compression if those variables are not set.
511511
# If you set them wrongly dumps might now be written to disk correctly.
512-
# Nevertheless, every error on writing or the compression process will
512+
# Nevertheless, every error during writing or the compression process will
513513
# be outputted.
514514

515515

516516
#
517517
# Choose a compression preset below.
518518
#
519-
# NOTE: Last turned on preset will be effective.
519+
# NOTE: Last turned-on preset will be effective.
520520
# (It is a shell script and variables will be overwritten
521521
# by the last specified value)
522522
#
@@ -580,7 +580,7 @@ COMPRESS_EXT="gz"
580580
# * Create public/private key pair
581581
# openssl req -x509 -nodes -newkey rsa:2048 -keyout mysqldump-secure.priv.pem -out mysqldump-secure.pub.pem
582582
#
583-
# * How to enccrypt? (pubkey)
583+
# * How to encrypt? (pubkey)
584584
# openssl smime -encrypt -binary -text -aes256 -in file.txt -out file.txt.enc" -outform DER mysqldump-secure.pub.pem
585585
#
586586
# * How to decrypt? (privkey)
@@ -629,7 +629,7 @@ OPENSSL_PUBKEY_PEM="/etc/mysqldump-secure.pub.pem"
629629
#
630630
# NOTE: Only applicable if ENCRYPT = 1
631631
#
632-
# Must be valid openssl encryption algorithm
632+
# Must be a valid openssl encryption algorithm
633633
#
634634
# Default value: "-aes256"
635635
OPENSSL_ALGO_ARG="-aes256"
@@ -685,7 +685,7 @@ DELETE_METHOD="tmpwatch"
685685
# tmpwatch/tmpreader will not be able to delete those files, unless you
686686
# specify to force it via -f (--force)
687687
#
688-
# From manpage:
688+
# From its manpage:
689689
# Remove files even if EUID doesn’t have write access.
690690
# Normally, files owned by the current EUID, with no write bit set are not removed.
691691
DELETE_FORCE=0
@@ -798,7 +798,7 @@ DUMP_FILE_INFO=1
798798
# This should normally not be changed as /tmp
799799
# is the default on most systems.
800800
#
801-
# The tmp folder is used to store files which hold stderr as well as
801+
# The tmp folder is used to store files that hold stderr as well as
802802
# stdout of mysqldump, openssl and the used compression tool.
803803
#
804804
# All tmp files will be deleted at the end of every run.

0 commit comments

Comments
 (0)