def _sync_s3_media(self):
        # Copy media from one S3 bucket to another if needed
        logger.info("Syncing S3 Media")
        if env.get('bucket_copy', False):
            with cd(env.project_root):
                cmd = [
                    '%s scripts/s3_copy_bucket.py' % PYTHON_BIN,
                    env.bucket_copy['from_aws_access_key'],
                    env.bucket_copy['from_aws_secret_key'],
                    env.bucket_copy['from_aws_storage_bucket'],
                    env.bucket_copy['to_aws_access_key'],
                    env.bucket_copy['to_aws_secret_key'],
                    env.bucket_copy['to_aws_storage_bucket'],
                    env.bucket_copy['to_aws_user_email'],
                    '&',
                ]
                logger.info(u"Copying S3 media")
                with hide(*fab_output_hides):
                    run('%s < /dev/null' % " ".join(cmd))
Sync S3 media between two buckets. Used to keep beta/training files in
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/brain_wrinkles/pstat/app.py/AppServerProvisioner._sync_s3_media