working script that will automatically copy the latest snapshotwq