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-25-2007, 04:46 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,700
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default Rsync copying files.

[advanced] This is only intented for advanced users. Please note that you must have multiple servers or vps accounts. Please note this is not supported by HostICan.

1. Generate SSH Keys (copy / paste into SSH window - From: Source Server):

ssh-keygen -t dsa -b 2048 -f ~/rsync-key

2. The below line will send the key to your second server (From: Source Server):

scp ~/rsync-key.pub user@remotehost:~

3. Do the following in SSH (Copy / Paste the below - From: Destination Server):

mkdir ~/.ssh &&
chmod 700 ~/.ssh &&
mv ~/rsync-key.pub ~/.ssh/ &&
cd ~/.ssh/ &&
touch authorized_keys &&
chmod 600 authorized_keys &&
cat rsync-key.pub >> authorized_keys

4. Set this up in cron (From: Source Server):

Code:
rsync -avz -e "ssh -i /home/<cPanel-username>/rsync-key" /home/<cPanel-username>/public_html/ <cPanel-username>@xxx.xxx.xxx.xxx:public_html
5. Done!


Replace:

<cPanel-username> with: you're real cPanel username
xxx.xxx.xxx.xxx with: you're real IP address
__________________
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
Files Davidlind Blogging 18 01-01-2008 05:39 PM
mv files older than ?date thnet Virtual Private Servers (VPS) 0 12-09-2007 05:28 PM
help with files and file manager okpeery The Lounge 4 11-21-2007 03:01 PM
How to: Move files from provider A to Provider B quickly via SSH lnxcode Virtual Private Servers (VPS) 4 11-14-2007 08:31 AM
How to Backup Site Files using FTP Joe User Shared Hosting 5 10-24-2007 01:37 AM


All times are GMT -4. The time now is 02:23 PM.


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.