wget下载阿里云RDS备份集

[root@localhost tmp]# more wget.sh

#!/bin/bash
download_url=`python /tmp/geturl.py`
echo $download_url
download_date=`date "+%Y%m%d%H%M%S"`
start_time=`date "+%Y%m%d %H%M%S"`
echo 'start_time='${start_time}>/tmp/wget.log
#wget -c '${download_url}' -O /tmp/${download_date}.tar.gz
end_time=`date "+%Y%m%d %H%M%S"`
echo 'end_time='${end_time}>>/tmp/wget.log

 

 

 

[root@localhost tmp]# more geturl.sh
#!/bin/bash

download_str=`python /tmp/geturl.py`
echo $download_str

download_url=`echo $download_str | cut -d "|" -f 1`
filesize=`echo $download_str | cut -d "|" -f 2`
filename=`echo $download_str | cut -d "|" -f 3`


echo $download_url
echo $filesize
echo $filename

 

posted @ 2019-02-12 17:20  slnngk  阅读(550)  评论(0编辑  收藏  举报