1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to keep 3 servers folder synchronized?

Discussion in 'Site & Server Administration' started by postcd, Nov 7, 2014.

  1. #1
    Hello,

    when having 3 or more linux servers, all have directory /backup and i want when on some server is new backup file created, it will be also copied to rest of the servers so aim is to keep same directory content on all servers. Im talking about automated syncing, not somethign i need to execute manually.

    Please is there any tutorial on how to achieve this? any ideas on google phrasses etc? thx
     
    postcd, Nov 7, 2014 IP
  2. cerno

    cerno Well-Known Member

    Messages:
    207
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #2
    You can use duplicati
     
    cerno, Nov 7, 2014 IP
  3. postcd

    postcd Well-Known Member

    Messages:
    1,037
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #3
    I cant find any linux tutorial for this software. I dont use GUI, but i have only command line, and i found no info how to install & use via command line (have Redhat CentOS)
     
    postcd, Nov 9, 2014 IP
  4. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #4
    zacharooni, Nov 9, 2014 IP
    samirj09 likes this.
  5. cerno

    cerno Well-Known Member

    Messages:
    207
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #5
    cerno, Nov 12, 2014 IP
  6. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #6
    @postcd
    Do you have plain serves OR do they have any control panel? BTW, what you are looking for can be achieved by lsyncd, however, it can be achieved using simple rsync commands as well by placing them in a cronjob and copying ssh key of each server to other servers. If you have a cPanel control panel, it will make things more easy as you can use the rsync command directly in the cPanel backup scripts so once the finish backup, your rsync command will be executed and latest backup will be copied to other servers immediately?

    Keep posted about the current status of your configuration, so people here can help you further.
     
    madaboutlinux, Nov 12, 2014 IP
  7. JoshDylan

    JoshDylan Well-Known Member

    Messages:
    133
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #7
    You could also use dropbox daemon for a real straight forward way of setting up a sync.
     
    JoshDylan, Nov 14, 2014 IP
  8. JoshDylan

    JoshDylan Well-Known Member

    Messages:
    133
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #8
    You could also use dropbox daemon for a real straight forward way of setting up a sync.
     
    JoshDylan, Nov 14, 2014 IP
  9. postcd

    postcd Well-Known Member

    Messages:
    1,037
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #9
    I have latest WHM on server..
    i prefer free linux command line way.
    i already setup some amateur script for rsyncing, its not ideal
     
    postcd, Nov 14, 2014 IP
  10. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #10
    You mentioned you want to sync the backups.. how are those backups created? Are they cPanel backups? If yes, you can just place the rsync command within the cPanel's backup script itself and once cPanel completes the backup, the rsync command will be executed automatically and your backup will be synced to the servers you mention in the rsync script.
     
    madaboutlinux, Nov 14, 2014 IP
  11. postcd

    postcd Well-Known Member

    Messages:
    1,037
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #11
    One backups are cpanel gzipped fullbackups, second are tar gzipped archives, these are not located on WHM server, third are backups of my bash scripts and some system files. So not all can be done via WHM
     
    postcd, Nov 15, 2014 IP
  12. samirj09

    samirj09 Well-Known Member

    Messages:
    335
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #12
    + 1 for lsyncd.
     
    samirj09, Dec 12, 2014 IP
  13. pwhrita

    pwhrita Active Member

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    #13
    Try Rsync.
     
    pwhrita, Dec 18, 2014 IP