ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Using Rsync to Replicate Elastix 2

    IT Discussion
    linux elastix 2 asterisk rsync
    2
    6
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      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/
      
      AlyRagabA 1 Reply Last reply Reply Quote 3
      • AlyRagabA
        AlyRagab @scottalanmiller
        last edited by

        @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 ?.

        scottalanmillerS 1 Reply Last reply Reply Quote 1
        • AlyRagabA
          AlyRagab
          last edited by

          is there any idea about the solution ?.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @AlyRagab
            last edited by

            @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?

            1 Reply Last reply Reply Quote 1
            • AlyRagabA
              AlyRagab
              last edited by

              all passwords are matched

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @AlyRagab
                last edited by

                @AlyRagab said in Using Rsync to Replicate Elastix 2:

                all passwords are matched

                And you've tested them with the MySQL client, for example?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post