DrawMGT Backups
Mirroring Production Systems to Test Systems
Instruction for the system mirror script, which mirrors one DrawMGT system to another.
Features:
- Copies database
- Option to 'disguise' fields
- Copies documents
- Option to replace documents, task attachments and submittal zip files with dummy files
- Runs genMeta.pl
mirrorSystem.pl [-h] [-v] -a|f|b -s path -d path [-r file] [-z file] -h Show help information -v Verbose mode -n Test mode, prints would would be done. Implies -v option. -a Mirror everything (files and DB) -f Mirror files -b Mirror database -s path Path to root of source system. E.g. /home/axpo/www/shtml/prod -d path Path to root of destination system. E.g. /home/axpo/www/shtml/test -r file Replace all files with the file 'file' -z file Replace all ZIP files with the file 'file' -x Perform field 'disguising', replaces certain database fields so that they are no longer readable.
Do not implement the -x option yet.
You must select one of the options: -a, -f, -d. You can select more than one of these options. Selecting -a is the same as selecting -f and -d.
The -s and -d options are both required. The script uses the source and destination paths and looks up the source and destination database names and login information.
The script is based on the 'technology' (e.g. command line parsing, settings lookup and subroutines) in app/etc/genComment.pl