AMI copy script