hello all: I have two machines (approx 50 miles apart) that I need to create a co-located backup solution for. One machine will serve as a central fileserver for an office, and every week a backup of that directory will be sent through the internet to a box I have here locally. I am aware of rsync being able to run over SSH, however I need this to be totally automated (SSH opening, passwords sent and synchronized, files copied, and connections broken). If I can create the script, I can place the script in the cron.weekly folder, and execute it from there using cron. I just need to know where to start, and how I'm going to get the password automation (any links or anything.I don't need to be walked through it, I just need a starting point, though any help is appreciated). Thanks, Quinn Snyder -------------- next part -------------- HTML attachment scrubbed and removed
Quinn Snyder wrote...> I am aware of rsync > being able to run over SSH, however I need this to be totally automated (SSH > opening, passwords sent and synchronized, files copied, and connections > broken).If I understand correctly your problem is the interactive ssh authentification. You can replace this by using keys. In a nutshell, on the sender side (that initiates the ssh connection): ssh-keygen -t rsa Just hit <ENTER> on all questions On the receiver side (where the ssh server is running): Copy the sender's .ssh/id_rsa.pub into .ssh/authorized_keys of the according user. Now you should be able to "ssh remote-user@remote" and get a shell without authentification. Same for "rsync -av /path/to remote:/path/to" Christoph
Hi, On Sunday 29 January 2006 19:36, Quinn Snyder wrote:> I have two machines (approx 50 miles apart) that I need to create a > co-located backup solution for. One machine will serve as a central > fileserver for an office, and every week a backup of that directory will be > sent through the internet to a box I have here locally. I am aware of > rsync being able to run over SSH, however I need this to be totally > automated (SSH opening, passwords sent and synchronized, files copied, and > connections broken). If I can create the script, I can place the script in > the cron.weekly folder, and execute it from there using cron. I just need > to know where to start, and how I'm going to get the password automation > (any links or anything.I don't need to be walked through it, I just need a > starting point, though any help is appreciated).You need a pre-shared key without passphrase: http://www.google.com/search?q=openssh+public+key to tunnel rsync thru SSH without user interaction. Yours, -- Ren? Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany) http://www.exactcode.de | http://www.t2-project.org +49 (0)30 255 897 45