Welcome to WebmasterWorld Guest from 54.147.212.173

Forum Moderators: bakedjake

Message Too Old, No Replies

Rsync with Cpanel

Rsync Cpanel backup

     
6:31 pm on Sep 9, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 23, 2004
posts:86
votes: 0


My host is not allowing SSH.

Can someone please let me know how can I use rsync with the Cpanel cron job to make backup of my public_html folder to a remote web server?

I need a sample cron job command please...

11:14 pm on Sept 10, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 27, 2001
posts:2548
votes: 0


Try something like

30 0 * * * /usr/bin/rsync -ave ssh /home/you/public_html/* you@remoteserver.com:./backups/remote/public_html/

This says at 12:30am every day sync the local public_html dir to the remote server. (not guaranteed to work, experiment by setting the execution time to 2 minutes from now and then check if it worked) You will have to also set up 'quick login keys' to the remote server. You'll have to be tricky and execute the commands with cron I guess.
See this post for a tutorial:
Backup up your webserver to your home computer. [webmasterworld.com]
Super short version to making quick login keys:

ssh-keygen -t rsa
(no passphrase)
ssh user@server "mkdir .ssh; chmod 700 .ssh"
scp .ssh/id_rsa.pub user@server:.ssh/authorized_keys2
4:45 pm on Sept 11, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 23, 2004
posts: 86
votes: 0


When I try this by Corn job:

/usr/bin/rsync -avz -e ssh /home/myacct/public_html/public_html remoename@remoteserver.com:ridhaacom

I am getting the following error message:

/etc/ssh/ssh_config line 39: Unsupported option "GSSAPIAuthentication"
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)

6:38 pm on Sept 11, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 27, 2001
posts:2548
votes: 0


Did ou get the ssh keys set up?
6:53 pm on Sept 11, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 23, 2004
posts:86
votes: 0


yes it is done.
7:31 pm on Sept 15, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 27, 2001
posts:2548
votes: 0



I am getting the following error message:

/etc/ssh/ssh_config line 39: Unsupported option "GSSAPIAuthentication"


Try toggling that option off or commenting it out in /etc/ssh/ssh_config.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members