homepage Welcome to WebmasterWorld Guest from 54.163.70.249
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Rsync with Cpanel
Rsync Cpanel backup
smartcard




msg:3077431
 6:31 pm on Sep 9, 2006 (gmt 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...

 

physics




msg:3078354
 11:14 pm on Sep 10, 2006 (gmt 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

smartcard




msg:3078984
 4:45 pm on Sep 11, 2006 (gmt 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)

physics




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

Did ou get the ssh keys set up?

smartcard




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

yes it is done.

physics




msg:3084778
 7:31 pm on Sep 15, 2006 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved