rstlist=$1
rstbin=/root/restore/direct-restore
if [ -f "$rstlist" ]; then
for i in `cat $rstlist`; do
if [ ! -d "/home/virtual/$i" ] && [ ! "$i" == "" ]; then
	$rstbin -d $i
	if [ -d "/home/virtual/$i" ]; then
		echo "$(date +"%b %e %H:%M:%S") $(hostname -s): restore of $i completed." >> $rstbin.log
	else
		echo "$(date +"%b %e %H:%M:%S") $(hostname -s): restore of $i failed." >> $rstbin.log
	fi
fi
done
fi
