2.ssh退出后要继续Copy
3.log进度,中断后可以知道下次copy的起点
#!/bin/bash
#./todata03.sh>>logfile 2>&1
#nohup ./todata03.sh
echo "201508 Start..." | tee -a todata03.log
cp -r /data02/fileserver/201508 .
echo "201508 OK" | tee -a todata03.log
3.log进度,中断后可以知道下次copy的起点
#!/bin/bash
#./todata03.sh>>logfile 2>&1
#nohup ./todata03.sh
echo "201508 Start..." | tee -a todata03.log
cp -r /data02/fileserver/201508 .
echo "201508 OK" | tee -a todata03.log
转载于:https://my.oschina.net/raydchang/blog/669735