From owner-freebsd-questions@FreeBSD.ORG Mon Sep 4 04:35:03 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG 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 08F5716A4DF for ; Mon, 4 Sep 2006 04:35:02 +0000 (UTC) (envelope-from kline@sage.thought.org) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 449F443D45 for ; Mon, 4 Sep 2006 04:35:02 +0000 (GMT) (envelope-from kline@sage.thought.org) Received: from sage.thought.org (kline@localhost [127.0.0.1]) by sage.thought.org (8.13.6/8.12.10) with ESMTP id k844Z0RS017372 for ; Sun, 3 Sep 2006 21:35:00 -0700 (PDT) (envelope-from kline@sage.thought.org) Received: (from kline@localhost) by sage.thought.org (8.13.6/8.13.1/Submit) id k844Z0J8017371 for freebsd-questions@FreeBSD.ORG; Sun, 3 Sep 2006 21:35:00 -0700 (PDT) (envelope-from kline) Date: Sun, 3 Sep 2006 21:35:00 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20060904043500.GA8617@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Organization: Thought Unlimited. Public service Unix for 20 years. User-Agent: Mutt/1.5.11 Cc: Subject: time to come clean... . X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2006 04:35:03 -0000 Folks, It's time to come clean and admit that parts/most of rsync are lost on my. The good-old-days when everybody trusted everybody on the net--when it was mostly just we geeks are way gone. Crackers, prob'ly 12-year-olds using DOS scripts, tried to crack my ns1 server. After that I upgraded to bind-9 and read [and enjoyed] DNS/BIND, *and* began using ssh. So a lot of my automatic backup programs stopped working. As thought.org grew from one machine to four, it became that much harder to tar and backup stuff. (I have automated some backups, but crudely. Now, after Friday's "trap 18", my first fatal ever, it's time to follow the backup system that Matthew suggested.) How can I automate the backup via rsync to other servers? I have a couple boxen out there miles remote; the rest are meters apart. If 'expect the unexpected' is any guide, now I *am* expecting. If it means a few days and 8 hours of typing, then that's just the price. (That I had a recent TaoEtc.tbz is a good sign; that it was in /usr/tmp _on_ tao is not a good sign... .) I've just installed/reinstaled rsync here on ns1.thought.org (aka "sage") and on zen.thought.org. I've fiddled with the rsyncd.conf on both FBSD systems. What I don't understand is how rsync, using ssh, gets past the secret password. If, say, I want to copy all of my www files from sage to zen, what do I put into /usr/local/etc/rsyncd.secrets? Let's say that rsyncd.secrets had: # User : pw root : abcd kline: wxyz Would this old snippet work as a starting place, exec'd by root: rsync --verbose --progress --stats --compress --rsh=/usr/local/bin/ssh --recursive --times --perms --links --delete \ --exclude "*bak" --exclude "*~" \ /usr/local/www/* zen.thought.org:/usr/local/www ?? Thanks for any clues. I have a lot of stuff tarballed, but it's time to do things right!! gary -- Gary Kline kline@thought.org www.thought.org Public service Unix