Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 756 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 756 Bytes

Refresh Target site with Source site's sqldumps and/or codebase

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.

Example

  • 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