Package: automysqlbackup
Version: 2.6+debian.4-3
Severity: minor
Tags: patch

I've attached a patch which corrects many spelling, grammar and other
typos in comments and docs.

I didn't correct errors in the changelog section.

This patch applies on top of the compression enhancement and bugfix
patch in #988914

-- System Information:
Debian Release: 10.9
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable'), (90, 'experimental'), 
(90, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-6-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages automysqlbackup depends on:
ii  bsd-mailx [mailx]                           8.1.2-0.20180807cvs-1
ii  default-mysql-client                        1.0.5
ii  mariadb-client-10.3 [virtual-mysql-client]  1:10.3.27-0+deb10u1

Versions of packages automysqlbackup recommends:
ii  mutt  1.10.1-2.1+deb10u5

automysqlbackup suggests no packages.
--- automysqlbackup/automysqlbackup.new 2021-05-21 12:12:41.390095705 +0100
+++ automysqlbackup.new 2021-05-21 12:30:38.756116347 +0100
@@ -58,13 +58,13 @@
 MAILADDR="u...@domain.com"
 
 # ============================================================
-# === ADVANCED OPTIONS ( Read the doc's below for details )===
+# === ADVANCED OPTIONS ( Read the docs below for details )===
 #=============================================================
 
 # List of DBBNAMES for Monthly Backups.
 MDBNAMES="mysql $DBNAMES"
 
-# List of DBNAMES to EXLUCDE if DBNAMES are set to all (must be in " quotes)
+# List of DBNAMES to EXCLUDE if DBNAMES are set to all (must be in " quotes)
 DBEXCLUDE=""
 
 # Include CREATE DATABASE in backup?
@@ -114,7 +114,7 @@
 # Compress communications between backup server and MySQL server?
 COMMCOMP=no
 
-# Additionally keep a copy of the most recent backup in a seperate directory.
+# Additionally keep a copy of the most recent backup in a separate directory.
 LATEST=no
 
 #  The maximum size of the buffer for client/server communication. e.g. 16MB 
(maximum is 1GB)
@@ -138,17 +138,17 @@
 fi
 
 #=====================================================================
-# Options documantation
+# Options documentation
 #=====================================================================
 # Set USERNAME and PASSWORD of a user that has at least SELECT permission
 # to ALL databases.
 #
 # Set the DBHOST option to the server you wish to backup, leave the
-# default to backup "this server".(to backup multiple servers make
-# copies of this file and set the options for that server)
+# default to backup "this server" (to backup multiple servers make
+# copies of this file and set the options for that server).
 #
-# Put in the list of DBNAMES(Databases)to be backed up. If you would like
-# to backup ALL DBs on the server set DBNAMES="all".(if set to "all" then
+# Put in the list of DBNAMES(Databases) to be backed up. If you would like
+# to backup ALL DBs on the server set DBNAMES="all" (if set to "all" then
 # any new DBs will automatically be backed up without needing to modify
 # this backup script when a new DB is created).
 #
@@ -157,16 +157,17 @@
 # NOTE: Spaces in DB names may not work correctly when SEPDIR=no.
 #
 # You can change the backup storage location from /backups to anything
-# you like by using the BACKUPDIR setting..
+# you like by using the BACKUPDIR setting.
 #
-# The MAILCONTENT and MAILADDR options and pretty self explanitory, use
+# The MAILCONTENT and MAILADDR options and pretty self explanatory, use
 # these to have the backup log mailed to you at any email address or multiple
-# email addresses in a space seperated list.
-# (If you set mail content to "log" you will require access to the "mail" 
program
-# on your server. If you set this to "files" you will have to have mutt 
installed
-# on your server. If you set it to "stdout" it will log to the screen if run 
from 
-# the console or to the cron job owner if run through cron. If you set it to 
"quiet"
-# logs will only be mailed if there are errors reported. )
+# email addresses in a space separated list.
+#
+# If you set mail content to "log" you will require access to the "mail"
+# program on your server. If you set this to "files" you will have to have mutt
+# installed on your server. If you set it to "stdout" it will log to the screen
+# if run from the console or to the cron job owner if run through cron. If you
+# set it to "quiet" logs will only be mailed if there are errors reported.
 #
 # MAXATTSIZE sets the largest allowed email attachments total (all backup 
files) you
 # want the script to send. This is the size before it is encoded to be sent as 
an email
@@ -177,16 +178,16 @@
 # to set executable permission. You can also copy the script to
 # /etc/cron.daily to have it execute automatically every night or simply
 # place a symlink in /etc/cron.daily to the file if you wish to keep it 
-# somwhere else.
-# NOTE:On Debian copy the file with no extention for it to be run
+# somewhere else.
+# NOTE:On Debian copy the file with no extension for it to be run
 # by cron e.g just name the file "automysqlbackup"
 #
-# Thats it..
+# That's it..
 #
 #
-# === Advanced options doc's ===
+# === Advanced options docs ===
 #
-# The list of MDBNAMES is the DB's to be backed up only monthly. You should
+# The list of MDBNAMES is the DBs to be backed up only monthly. You should
 # always include "mysql" in this list to backup your user/password
 # information along with any other DBs that you only feel need to
 # be backed up monthly. (if using a hosted server then you should
@@ -196,8 +197,8 @@
 #
 # If you set DBNAMES="all" you can configure the option DBEXCLUDE. Other
 # wise this option will not be used.
-# This option can be used if you want to backup all dbs, but you want 
-# exclude some of them. (eg. a db is to big).
+# This option can be used if you want to backup all DBs, but you want 
+# exclude some of them. (e.g. a db is too big).
 #
 # Set CREATE_DATABASE to "yes" (the default) if you want your SQL-Dump to 
create
 # a database with the same name as the original database when restoring.
@@ -208,25 +209,25 @@
 #
 # The SEPDIR option allows you to choose to have all DBs backed up to
 # a single file (fast restore of entire server in case of crash) or to
-# seperate directories for each DB (each DB can be restored seperately
+# separate directories for each DB (each DB can be restored separately
 # in case of single DB corruption or loss).
 #
 # To set the day of the week that you would like the weekly backup to happen
 # set the DOWEEKLY setting, this can be a value from 1 to 7 where 1 is Monday,
 # The default is 6 which means that weekly backups are done on a Saturday.
 #
-# COMP is used to choose the compression used, options are gzip, bzip2, xz or
-# zstd.  On many systems and source data, zstd gives a good trade-off between
-# file size and performance.
+# COMP is used to choose the compression used, options include gzip, bzip2, xz
+# or zstd.  On many systems and source data, zstd gives a good trade-off
+# between file size and performance.
 #
-# COMMCOMP is used to enable or diable mysql client to server compression, so
+# COMMCOMP is used to enable or disable mysql client-to-server compression, so
 # it is useful to save bandwidth when backing up a remote MySQL server over
 # the network. 
 #
 # LATEST is to store an additional copy of the latest backup to a standard
-# location so it can be downloaded bt thrid party scripts.
+# location so it can be downloaded by third party scripts.
 #
-# If the DB's being backed up make use of large BLOB fields then you may need
+# If the DBs being backed up make use of large BLOB fields then you may need
 # to increase the MAX_ALLOWED_PACKET setting, for example 16MB..
 #
 # When connecting to localhost as the DB server (DBHOST=localhost) sometimes
@@ -254,7 +255,7 @@
 # Please Note!!
 #=====================================================================
 #
-# I take no resposibility for any data loss or corruption when using
+# I take no responsibility for any data loss or corruption when using
 # this script..
 # This script will not help in the event of a hard drive crash. If a 
 # copy of the backup has not be stored offline or on another PC..
@@ -266,12 +267,12 @@
 # Restoring
 #=====================================================================
 # Firstly you will need to uncompress the backup file.
-# eg.
+# e.g.
 # gunzip file.gz (or bunzip2 file.bz2)
 #
 # Next you will need to use the mysql client to restore the DB from the
 # sql file.
-# eg.
+# e.g.
 # mysql --user=username --pass=password --host=dbserver database < 
/path/file.sql
 # or
 # mysql --user=username --pass=password --host=dbserver -e "source 
/path/file.sql" database
@@ -397,7 +398,7 @@
                OPT="$OPT --compress"
        fi
 
-# Add --routines mysqldum option to ${OPT}
+# Add --routines mysqldump option to ${OPT}
 if [ "${ROUTINES}" = "yes" ];
        then
                OPT="${OPT} --routines"
@@ -518,7 +519,7 @@
 
        # Compression utilities output verbose stats to stderr.  In order to
        # accommodate the logging convention of automysqlbackup, output the
-       # stderr of the compression command to either stdout of stderr of this
+       # stderr of the compression command to either stdout or stderr of this
        # function as appropriate.
 
        if [ $COMP_RC != 0 ] ; then
@@ -698,7 +699,7 @@
 echo Backup of Database Server - $HOST
 echo ======================================================================
 
-# Test is seperate DB backups are required
+# Test if separate DB backups are required
 if [ "$SEPDIR" = "yes" ]; then
 echo Backup Start Time `date`
 echo ======================================================================
@@ -726,7 +727,7 @@
        # Prepare $DB for using
        DB="`echo $DB | sed 's/%/ /g'`"
        
-       # Create Seperate directory for each DB
+       # Create separate directory for each DB
        if [ ! -e "$BACKUPDIR/daily/$DB" ]              # Check Daily DB 
Directory exists.
                then
                mkdir -p "$BACKUPDIR/daily/$DB"

Reply via email to