prepare crypto sim enhanced
This commit is contained in:
parent
06610de992
commit
df04d764c8
@ -10,17 +10,22 @@
|
|||||||
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 -d YYYMMDD Date> [-O <output dir (./) >]"
|
echo -n "Usage: $0"
|
||||||
|
echo -n " -d YYYMMDD Date>"
|
||||||
|
echo -n " [-O <output dir (./) >]"
|
||||||
|
echo -n " [-S <archive_source_host (cloud21)>]"
|
||||||
|
echo -n " [-D <orig_db_source> (cloud21)]"
|
||||||
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# --------------------- Settings
|
# --------------------- Settings
|
||||||
SourceHost=cloud21.cvtt.vpn
|
SourceHost=cloud21
|
||||||
SourceRootDir=/opt/store/cvtt/md_archive/crypto
|
SourceRootDir=/opt/store/cvtt/md_archive/crypto
|
||||||
DbSource=cloud21
|
DbSource=cloud21
|
||||||
# --------------------- Settings
|
# --------------------- Settings
|
||||||
|
|
||||||
while getopts ":d:O:" opt; do
|
while getopts ":d:O:S:D:" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
d )
|
d )
|
||||||
Date=$OPTARG
|
Date=$OPTARG
|
||||||
@ -28,6 +33,12 @@ while getopts ":d:O:" opt; do
|
|||||||
O )
|
O )
|
||||||
OutputDir=$OPTARG
|
OutputDir=$OPTARG
|
||||||
;;
|
;;
|
||||||
|
S )
|
||||||
|
SourceHost=$OPTARG
|
||||||
|
;;
|
||||||
|
D )
|
||||||
|
DbSource=$OPTARG
|
||||||
|
;;
|
||||||
\? )
|
\? )
|
||||||
echo "Invalid option: -$OPTARG" >&2
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
usage
|
usage
|
||||||
@ -46,6 +57,8 @@ fi
|
|||||||
if [ -z ${OutputDir} ] ; then
|
if [ -z ${OutputDir} ] ; then
|
||||||
OutputDir=.
|
OutputDir=.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SourceHost+=".cvtt.vpn"
|
||||||
mkdir -p ${OutputDir}
|
mkdir -p ${OutputDir}
|
||||||
|
|
||||||
# --- Binance
|
# --- Binance
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user