This script refresh a target site's CMS and CiviCRM databases with respective source databases or create a copy of source site as target site as per given target parmeters.
- Read help
$sh source_target_refresh.sh help
Usage: refreshsite.sh {refreshsite|copysite|print_var|help}
refreshsite - Refresh a target/staging site with sql dumps of source/production site
copysite - Create a site using codebase and dumps of source site
print_var - Just to test if the variables are included from the source file
help - this help info
- Copy site
$sh source_target_refresh.sh copysite
- Refresh site
$sh source_target_refresh.sh refreshsite