changed cp -R to rsync -a