# cat bigsize_file_upload.sh #!/bin/bash path=/mnt host=`hostname` num=0 loop_num=0 file_max=2 file_size=1 loop=3
ftp_host="xxxxxx" ftp_id="xxxxxx" ftp_pw="xxxxxx"
mkdir $path/$host ### file make while [ $num -lt $file_max ] do num=`expr $num + 1` fallocate -l ${file_size}G $path/$host/$num.img done
### ftp upload while [ $loop_num -lt $loop ] do loop_num=`expr $loop_num + 1` lftp -e "mirror -R $path/$host $host; rm -r $host; bye" -u ${ftp_id},${ftp_pw} ${ftp_host} echo "loop count : $loop_num" done
echo "ftp upload end"
|