![]() |
|
|
|
|
|||||||
| 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! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
[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 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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |