2022-11-04 17:18:05
This commit is contained in:
@@ -21,7 +21,7 @@ while [[ $# -gt 0 ]]; do
|
||||
CMD=echo
|
||||
shift 1
|
||||
;;
|
||||
-a|--arch)
|
||||
-a|--archive)
|
||||
ARCHPATH=$2
|
||||
shift 2
|
||||
;;
|
||||
@@ -71,7 +71,7 @@ while [[ $# -gt 0 ]]; do
|
||||
echo -e "\t ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾"
|
||||
echo -e "\t -h| --help display this menu [ flag ]"
|
||||
echo -e "\t -d| --dry-run no permanent changes, show plan [ flag ]"
|
||||
echo -e "\t -a| --arch directory containing archive directories [ string ]"
|
||||
echo -e "\t -a| --archive directory containing archive directories [ string ]"
|
||||
echo -e "\t-sd| --subdir directory containing actual compressed sql files [ string ]"
|
||||
echo -e "\t-sk| --skip databases to not restore (e.g. mysql would replace users) [ array ] mysql"
|
||||
echo -e "\t -f| --full restore all tables not excluded (no comparison) [ array ] off"
|
||||
@@ -82,7 +82,7 @@ while [[ $# -gt 0 ]]; do
|
||||
echo -e "\t-mh| --masterhost replication master host address [ string ]"
|
||||
echo -e "\t-mu| --masteruser user name for replication [ string ]"
|
||||
echo -e "\t-mp| --masterpass password for replication [ string ]"
|
||||
echo -e "\nEXAMPLE: $0 -p main_db -s backup_data -a /home/backups/mysql/daily -k 'mysql performance_stats' --dry-run"
|
||||
echo -e "\nEXAMPLE: $0 -p main_db -sd backup_data -a /home/backups/mysql/daily -sk 'mysql performance_stats' --dry-run"
|
||||
exit
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user