buccaneer Posted February 15, 2018 Report Share Posted February 15, 2018 I want to set up a local mirror of the server. the mirror will be housed on a separate machine and will be used as a daily backup of the DNS, apache, squid, smb servers and user data. What steps do I need to take for this to become a reality? Link to comment Share on other sites More sharing options...
ianw1974 Posted February 16, 2018 Report Share Posted February 16, 2018 Local mirror of which server? Your own? You can do it a number of ways. If just a backup, you could rsync everything in terms of configuration for DNS, squid, Apache, samba. I don't see a reason for doing a backup of the squid cache, as it expires anyway. With rsync, you can use it just to pick up changes, and also with the --delete parameter, it will delete and user data that was deleted between backups. Otherwise, it will just keep adding and adding files even if a user deleted. Rsync can be done over SSH, or you can setup rsyncd on the server in question, and then just make a cron to run nightly. Alternatively, if you want to mirror it, you could also have it run as an active/standby server with HA. If one fails, then the other becomes active without having to restore data from a backup. It all depends on what exactly you want to achieve. Link to comment Share on other sites More sharing options...
buccaneer Posted February 17, 2018 Author Report Share Posted February 17, 2018 The website is for a Community Radio Station (2nim-FM) the website is http://nimfm.org in the famous alternate lifestyle villiage of Nimbin NSW. As the organisation is run by volunteers in a place with a transient population there have been a total of eight system admins over a span of 16 years who have all added their own flavour to the capabilities of the servers. Box #1 has the apache, DNS ,SMB, and houses the MP3 record libraray, streaming server/aidio logger (legal requirement for broadcast licence)... amoung other things Box #2 has the proxy and perhaps the mail server (from memory) Box #3 (dead) I am told had a Mirror of box #1 It sounds like your alternatve method is what I am looking for Ian Thank you for your help and.... PS nice to see someone still lurking here Link to comment Share on other sites More sharing options...
ianw1974 Posted February 18, 2018 Report Share Posted February 18, 2018 To mirror it you'll need a second server with all the same services that you have on the other servers. However it will require changes to the existing servers if you want to replicate the data and have it shared between them. You can use glusterfs for that. You can configure heartbeat for failover to the server with the data copied and services doubled up such as apache, DNS (bind), samba (smb), etc, etc. It's not going to be too simple to do, it will take a bit of work. PS - likewise, and glad to see someone popped in to post :) Link to comment Share on other sites More sharing options...
buccaneer Posted February 24, 2018 Author Report Share Posted February 24, 2018 current plan is to set up the HA cluster on a masqed LAN for testing before setting it live. It is going to be a mammoth task... it has been 16 years since i have done any networking.. ah well if you dont try you never fail Link to comment Share on other sites More sharing options...
ianw1974 Posted February 24, 2018 Report Share Posted February 24, 2018 I suggest haproxy it will probably be easier than heartbeat with ldirectord. With heartbeat and ldirectord I use direct routing rather than masquerade, as it's faster, just a little more effort to set it up. So if you want something simpler for the beginning, use haproxy as it's pretty straightforward. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now