enabled /usr/local/etc/bashup.conf option

This commit is contained in:
Matthew Saunders Brown 2021-04-23 13:23:37 -07:00
parent 186da55ecb
commit 4db91d9fe8
2 changed files with 6 additions and 5 deletions

View File

@ -32,7 +32,7 @@ nano /usr/local/sbin/bashup.sh
crontab -e
```
The "nano /usr/local/sbin/bashup.cnf" command is optional. Do this if you need to override any of the configurable settings found at the top of the script.
The "nano /usr/local/sbin/bashup.conf" command is optional. Do this if you need to override any of the configurable settings found at the top of the bashup.sh script.
For the crontab add an entry for each of the "backup" scripts that you'd like to run. For example, to back up files at 3:01 am every day add this crontab:

View File

@ -4,9 +4,7 @@
# https://git.stack-source.com/msb/bashup
# MIT License Copyright (c) 2021 Matthew Saunders Brown
#
# begin configurable vars
#
# retention vars
retention_years=0;
@ -26,9 +24,12 @@ defaults_extra_file='/etc/mysql/debian.cnf';
# list of mysql databases to skip
exclusions=('information_schema' 'performance_schema' 'sys' 'wsrep');
#
# end configurable vars
#
# check for local config, which can be used to override any of the above
if [[ -f /usr/local/etc/bashup.conf ]]; then
source /usr/local/etc/bashup.conf
fi
# must be root, attempt sudo if need be
if [ "${EUID}" -ne 0 ]; then