prepare crypto sim enhanced

This commit is contained in:
Cryptoval2 2025-03-24 17:25:57 +00:00
parent 06610de992
commit df04d764c8
2 changed files with 17 additions and 4 deletions

View File

@ -1 +1 @@
2.0.7,OPS-10
2.0.8,prepare crypto sim enhanced

View File

@ -10,17 +10,22 @@
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
}
# --------------------- Settings
SourceHost=cloud21.cvtt.vpn
SourceHost=cloud21
SourceRootDir=/opt/store/cvtt/md_archive/crypto
DbSource=cloud21
# --------------------- Settings
while getopts ":d:O:" opt; do
while getopts ":d:O:S:D:" opt; do
case ${opt} in
d )
Date=$OPTARG
@ -28,6 +33,12 @@ while getopts ":d:O:" opt; do
O )
OutputDir=$OPTARG
;;
S )
SourceHost=$OPTARG
;;
D )
DbSource=$OPTARG
;;
\? )
echo "Invalid option: -$OPTARG" >&2
usage
@ -46,6 +57,8 @@ fi
if [ -z ${OutputDir} ] ; then
OutputDir=.
fi
SourceHost+=".cvtt.vpn"
mkdir -p ${OutputDir}
# --- Binance