Populate master_archive on each remote instance.
Each standalone instance usually processes clients for the site or clinic in which they operate. In some circumstances, you may wish to have records from all patients in the system - from all sites - available, even if the site is offline. These commands are used to populate master_archive on each server. This archive is used for the import patient process. There is also an automated process that updates this archive daily.
command on server to create archive
tar -czvf archive.tar.gz archive
script for transferring archive to standalone from master server. The lines marked w/ "//" (sftp and login) are pseudocode - you'll need to perform those operations yourself.
// open sftp session cd /var/www/zeprs_standalone/webapps put archive.tar.gz exit // login to standalone cd /var/www/zeprs_standalone/webapps mkdir master_temp mv archive.tar.gz master_temp cd master_temp tar -xzvf archive.tar.gz mv archive master_archive rm -rf /var/www/zeprs_standalone/webapps/master_archive mv master_archive ../ cd .. rm -rf master_temp
- Printer-friendly version
- Login to post comments
- PDF version