Using Rsync to Replicate Elastix 2
-
Cleaning up some records and came across this. Not sure that it is complete but it is a starting point on an rsync-based Elastix 2 replication script...
rsync -avh -e ssh --exclude 'cron*' --exclude 'fstab' --exclude 'mod*' --exclude 'sysconfig' --exclude 'make*' --exclude 'blk*' --exclude 'VM*' --exclude 'vm*' --exclude 'redhat*' /etc/ hostname:/etc/ rsync -avh -e ssh /var/lib/mysql/ hostname:/var/lib/mysql/ rsync -avh -e ssh /usr/local/fop2 hostname:/usr/local/fop2 rsync -avh -e ssh /var/www/html/fop2 hostname:/var/www/html/fop2 rsync -avh -e ssh /var/spool/hylafax/ hostname:/var/spool/hylafax/
-
@scottalanmiller thank you scott for this thread ,
but i did this sync between to elastix servers and unfortunately i could not access the admin page of elastix however the passwords are matched in the below fies :
/etc/elastix.conf
/etc/asterisk/manager.conf
/etc/amportal.conf
and all these files are owned by asterisk user with 660 permissions
also i have logged into the database and i can see all information replicated from the remote server successfully
so what could be the problem ?. -
is there any idea about the solution ?.
-
@AlyRagab said in Using Rsync to Replicate Elastix 2:
@scottalanmiller thank you scott for this thread ,
but i did this sync between to elastix servers and unfortunately i could not access the admin page of elastix however the passwords are matched in the below fies :
/etc/elastix.conf
/etc/asterisk/manager.conf
/etc/amportal.conf
and all these files are owned by asterisk user with 660 permissions
also i have logged into the database and i can see all information replicated from the remote server successfully
so what could be the problem ?.Those files just share the passwords on the client side. Did you set up the systems with matching passwords in the databases before this point?
-
all passwords are matched
-
@AlyRagab said in Using Rsync to Replicate Elastix 2:
all passwords are matched
And you've tested them with the MySQL client, for example?