#!/bin/bash
echo $RSYNC_HOST_ADDR >> /tmp/myrsync.log
mkdir /var/www/ap/uploads/$RSYNC_HOST_ADDR/
cp /var/www/ap/uploads/* /var/www/ap/uploads/$RSYNC_HOST_ADDR/
rm /var/www/ap/uploads/*
exit 0
