function sendfile {
rsync
}
touch ~/tmp/newsync
if [ -f ~/tmp/lastsync ]; then
NEWERFLAG="-newer ~/tmp/lastsync"
else
NEWERFLAG=""
fi
find ~/user/data/ ${NEWERFLAG} ! -newer ~/tmp/newsync | while read file; do
sendfile ${file}
done
touch -r ~/tmp/newsync ~/tmp/lastsync