vagrant/templates/rsync.erb

15 lines
191 B
Plaintext
Raw Normal View History

2010-05-18 08:24:59 +00:00
#!/bin/sh
TIMESTART=`date +%s`
while [ 1 ]
do
echo 'Syncing...'
rsync $1 $2 $3
TIME=$((`date +%s`-$TIMESTART))
echo $TIME
if [ $TIME -ge 50 ]
then
break
fi
sleep 1
done