this solution seems to work to synchronize local media files against s3