Welcome to WebmasterWorld Guest from 54.147.20.131

Forum Moderators: bakedjake

Message Too Old, No Replies

Rsync with Cpanel

Rsync Cpanel backup

     

smartcard

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

10+ Year Member



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...

physics

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

WebmasterWorld Senior Member 10+ Year Member



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

smartcard

4:45 pm on Sep 11, 2006 (gmt 0)

10+ Year Member



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)

physics

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

WebmasterWorld Senior Member 10+ Year Member



Did ou get the ssh keys set up?

smartcard

6:53 pm on Sep 11, 2006 (gmt 0)

10+ Year Member



yes it is done.

physics

7:31 pm on Sep 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month