sudo mount --uuid ${DATA_DEVICE_UUID} -o uid=1000,gid=1000,umask=0022${MOUNT_PATH}||echo"Cannot mount data device with UUID ${DATA_DEVICE_UUID}!";exit1
fi
if[ ! -e "${DATA}"]
then
mkdir -p ${DATA}
fi
if[ ! -e "${DATA}/in"]
then
mkdir -p "${DATA}/in"
fi
rsync -q -a --remove-source-files "${CLIENT}:${CLIENT_FOLDER}/*.jpg""${DATA}/in"
if[ ! -e "${DATA}/data"]
then
mkdir -p "${DATA}/data"
fi
for i in `find "${DATA}/in/" -name "*.jpg" -type f`