Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Dedicated Servers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Dedicated Servers Need help choosing which dedicated server that works best with your site(s)? Feel free to talk about them here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2007, 03:16 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,672
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default synchronizing multiple servers

You should be able to set this up in the root cron to do like every 30 mins:

*/30 * * * /etc/sync.sh

Make a file with the below code in it (you can use notepad and save it as sync.sh)

Code:
cd /home/user/ &&
wget -q -nH --mirror ftp://user:pass@host/public_html/ &&
chown user:user public_html/ -R &&
chmod 750 public_html/
User = FTP username
Pass = Password for FTP
Host = IP or Hostname of your old account (where it will pull data from).

upload it via SCP or wget to /etc/ Leave the ownership as root:root
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #2 (permalink)  
Old 11-24-2007, 07:50 PM
Scott's Avatar
Senior Member
 
Join Date: Sep 2007
Location: hostican-coupon.com
Posts: 1,139
Default

Is this used to do backup mirror servers from the very large sites? So if one DC goes down, the backup NS3 and NS4 slots pick up and serve the page properly?

Interesting
__________________
HostICan Discount - New customer? Save $50 on your HostICan hosting purchase!
HostICan Hosting Reviews - See what other customers say about HostICan.
Simple Hosting - Web Hosting Made Simple!
Reply With Quote
  #3 (permalink)  
Old 11-25-2007, 10:35 AM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,672
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Well its used basically for mirror multiple servers across a string so if you have a cluster such as:

Server 1
Server 2
Server 3

But you dont want to update all 3 with the changes, what you can do is use the above script to copy everything from Server 1 to all the others, by having them sync every 30 mins +/-.

So result 30 mins later would be that all would have the same files, content
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #4 (permalink)  
Old 11-25-2007, 05:22 PM
Scott's Avatar
Senior Member
 
Join Date: Sep 2007
Location: hostican-coupon.com
Posts: 1,139
Default

Very cool. I love it!
__________________
HostICan Discount - New customer? Save $50 on your HostICan hosting purchase!
HostICan Hosting Reviews - See what other customers say about HostICan.
Simple Hosting - Web Hosting Made Simple!
Reply With Quote
  #5 (permalink)  
Old 11-28-2007, 04:19 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,672
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

This way works a little better I learned:

Rsync copying files.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Namecheap - Registering Name Servers lnxcode Virtual Private Servers (VPS) 1 01-04-2008 12:27 AM
How do I Change Name servers? lnxcode Virtual Private Servers (VPS) 0 01-01-2008 01:29 AM
New Dedicated Servers (Coming Soon) lnxcode Announcements 0 10-20-2007 02:15 PM
HostICan Dedicated Servers - Security? Scott Dedicated Servers 2 10-10-2007 11:19 PM
Both DNS servers will run on same machine? facelikebambi Virtual Private Servers (VPS) 10 10-09-2007 03:00 PM


All times are GMT -4. The time now is 09:34 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.