From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 09:59:33 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83CA916A4B3 for ; Mon, 27 Oct 2003 09:59:33 -0800 (PST) Received: from bwlogic.com (H27.C226.tor.velocet.net [216.138.226.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0E7543FA3 for ; Mon, 27 Oct 2003 09:59:30 -0800 (PST) (envelope-from jlavigne@bwlogic.com) Received: (qmail 45613 invoked by uid 89); 27 Oct 2003 17:59:29 -0000 Received: from unknown (HELO canada) (192.168.1.5) by h27.c226.tor.velocet.net with SMTP; 27 Oct 2003 17:59:29 -0000 From: "Jason Lavigne" To: "'M.D. DeWar'" , "'freebsd'" Date: Mon, 27 Oct 2003 12:59:28 -0500 Message-ID: <002a01c39cb4$11062e90$0501a8c0@canada> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Importance: Normal In-Reply-To: <009f01c39cab$8deb61e0$fb65a8c0@ocfl061> Subject: RE: rsync help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2003 17:59:33 -0000 Here is what I have that I run from cron, /usr/local/bin/rsync -aq --password-file=/usr/local/etc/rsync.password rsyncuser@myserver::usr/local/www/bwlogic.com/html /usr/local/www/bwlogic.com now I am using a password file and not SSH, I see that you are looking to use SSH to connect, if so this page might be of some help http://killyridols.net/rsyncssh.shtml I would suggest you drop the SSH until you have rsync working fine, then add SSH. cheers Jay -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of M.D. DeWar Sent: Monday, October 27, 2003 11:58 AM To: freebsd Subject: rsync help I would like to backup some website directorys on one machine to another machine. I have read the rsync man pages and some sites but am still confused about how the command line should be. I will only run it from the command line every so often. I have tried several ways but can't figure it out. I guess I am having issues with how the directories should be listed on the command line. One the server that is to be backed up the directory is /home/sites/www.domain.com/web - all files and other directories are below the /web and in reading it seemed I should keep the trailing slash off. on the server that the files will be copied to the directory is /home/domain/website/ If I understood right the trailing slash should be on this one. ./rsync -ae ssh newbiedummy@servertobebackedup.com:/home/sites/www.domain.com/web /home/domain/website/ am I even close to being right ? thanks Mark _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"