Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
cloudappliance/hawebreplication [2018_06_13 10:59] – dan | cloudappliance/hawebreplication [2019_12_09 17:24] – moved to install rsync via yum instead of pulling down an rpm via wget eric |
---|
===== SME HA Web Replication ===== | ===== SME File Fabric HA Web Replication ===== |
| |
==== Disclaimer ==== | ==== Disclaimer ==== |
| |
<code> | <code> |
wget http://dl.fedoraproject.org/pub/fedora/linux/releases/27/Everything/x86_64/os/Packages/r/rsync-3.1.2-7.fc27.x86_64.rpm | yum install -y rsync |
| |
rpm -Uvh rsync-3.1.2-7.fc27.x86_64.rpm | |
| |
mkdir replication | mkdir replication |
storage="<smesql01>" | storage="<smesql01>" |
/bin/rsync -rtu -e "ssh" /var/www/smestorage/public_html/config.inc.php smeconfiguser@$storage:~/smewebconfigs/config/ | /bin/rsync -rtu -e "ssh" /var/www/smestorage/public_html/config.inc.php smeconfiguser@$storage:~/smewebconfigs/config/ |
| |
| /bin/rsync -rtu -e "ssh" /var/www/smestorage/public_html/SMELICENSE.lic smeconfiguser@$storage:~/smewebconfigs/config/ |
| |
/bin/rsync -rtu -e "ssh" /var/www/smestorage/public_html/templates/company smeconfiguser@$storage:~/smewebconfigs/ | /bin/rsync -rtu -e "ssh" /var/www/smestorage/public_html/templates/company smeconfiguser@$storage:~/smewebconfigs/ |
| |
/bin/rsync -rtogu --chown=smestorage:smestorage --chmod=740 -e "ssh" smeconfiguser@$storage:~/smewebconfigs/config/config.inc.php /var/www/smestorage/public_html/config.inc.php | /bin/rsync -rtogu --chown=smestorage:smestorage --chmod=740 -e "ssh" smeconfiguser@$storage:~/smewebconfigs/config/config.inc.php /var/www/smestorage/public_html/config.inc.php |
| |
| /bin/rsync -rtogu --chown=smestorage:smestorage --chmod=644 -e "ssh" smeconfiguser@$storage:~/smewebconfigs/config/SMELICENSE.lic /var/www/smestorage/public_html/SMELICENSE.lic |
/bin/rsync -rtogu --chown=smestorage:smestorage --chmod=644 -e "ssh" smeconfiguser@$storage:~/smewebconfigs/company/ /var/www/smestorage/public_html/templates/company/ | /bin/rsync -rtogu --chown=smestorage:smestorage --chmod=644 -e "ssh" smeconfiguser@$storage:~/smewebconfigs/company/ /var/www/smestorage/public_html/templates/company/ |
</code> | </code> |