Rsync In Asterisk

Discussion in 'General' started by eyasterisk, Aug 2, 2007.

  1. eyasterisk

    Joined:
    Apr 3, 2007
    Messages:
    6
    Likes Received:
    0
    Hi

    Does anyone know if rsync is supported in Elastix. Would be able to sync the Elastix repository using the rsync command. Please advise
     
  2. galexander

    Joined:
    Nov 24, 2008
    Messages:
    15
    Likes Received:
    0
    *BUMP*

    this would be very useful and reduce bandwidth usage and stress on your server.
     
  3. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    rsync is indeed supported by Centos(the underlying OS of elastix)
    it is not installed by default but

    yum install rsync

    will change that fact.

    If you want a local copy of the repository then wget would be more appropriate. Yum is the chosen update manager in Centos and really quite efficient, so I suggest you just use that, as reinventing the wheel is a usually a waste of time.
     
  4. galexander

    Joined:
    Nov 24, 2008
    Messages:
    15
    Likes Received:
    0
    I understand and indeed I use yum, I like it.

    I want to mirror your repository! And wget is most certainly not more well suited than rsync for this -- wget cannot delete the old files that will disappear from your repository.

    Thanks for your consideration.
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    galexander:

    I understand, in that case I would suggest it would be polite to ask the repository maintainer for that permission and if they agree I'm sure they would work with you in a formal fashion.
     
  6. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    This still beta, but you can test this:

    Try to rsync://repo.elastix.org/elastix from 20:00-06:00 (GMT -5) That would rsync all the versions of the Elastix and it is: http://repo.elastix.org

    If you want to have cooperate with a public mirror for the project, please contact me via email to see how you can help us. (rbonifaz[at]elastix.org)

    In the meanwhile we already have new mirrors you can test that are being sync with the default one:

    http://repo-es.elastix.org/elastix
    http://repo-us-tx.elastix.org/elastix
    http://repo.utpl.edu.ec/elastix

    Best Regards,

    Rafael
     
  7. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
  8. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    And It's nice and fast, all md5sum returns agreed with the last repo update i did, no problems.
     
  9. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    great, thanks for the feedback :)
     
  10. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Good move Rafael/Palosanto, thanks!


    But it seems there are some directories, that I would expect, if they should be there at all,at least to be re-entrant, they seem to be broken links.

    . ./mirror/1.[53]/1.[53]/ are full of structure, but empty of content.
    {edit]
    well, that seems fixed now!
    I added --delete:

    rsync -avrt --progress --stats --delete rsync://rsync0.elastix.org/elastix/ /var/www/html/mirror

    maybe I fixed my own screwups :unsure:

    [/edit]

    and I notice, so is

    . ./mirror/1.6/

    (I guess we wait for that?)

    Would it be lazy of me to ask for an elastix_local.repo.template to suit the mirror?, could that be added to root?

    Regards

    Dick


    As a quibble some of the permissions seem a little permissive . . .

    (I'll shut up now)
     
  11. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Can you make the template and we could included in the next release of Elastix ;)

    About the missing directories I am checking now with developers why is this happening.

    The other thing we wan't to do, but not sure yet is to manage a mirror list. So that we can use this mirror via http and the one in Spain. Just like CentOs does it.

    Regards,

    Rafael
     
  12. Caifo

    Joined:
    May 26, 2012
    Messages:
    1
    Likes Received:
    0
    Is there any rsync repository still working? I'm trying to setup a local mirror, and the rsync server seems to be down.

    Any help on this?

    Thanks!
     

Share This Page