From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55795 Path: main.gmane.org!not-for-mail From: "Steven E. Harris" Newsgroups: gmane.emacs.gnus.general Subject: Re: No Gnus feature request: simpler file structure for synching Date: Wed, 07 Jan 2004 08:20:04 -0800 Organization: SEH Labs Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1073492460 458 80.91.224.253 (7 Jan 2004 16:21:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 16:21:00 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M4335@lists.math.uh.edu Wed Jan 07 17:20:51 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AeGQN-0006ji-00 for ; Wed, 07 Jan 2004 17:20:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AeGQD-0007hq-00; Wed, 07 Jan 2004 10:20:41 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AeGQ8-0007hl-00 for ding@lists.math.uh.edu; Wed, 07 Jan 2004 10:20:36 -0600 Original-Received: from dfw-gate2.raytheon.com (dfw-gate2.raytheon.com [199.46.199.231]) by justine.libertine.org (Postfix) with ESMTP id CB0113A0047 for ; Wed, 7 Jan 2004 10:20:35 -0600 (CST) Original-Received: from ds02t00.directory.ray.com (ds02t00.directory.ray.com [147.25.154.117]) by dfw-gate2.raytheon.com (8.12.10/8.12.10) with ESMTP id i07GKYaL028413; Wed, 7 Jan 2004 10:20:34 -0600 (CST) Original-Received: from ds02t00.directory.ray.com (localhost [127.0.0.1]) by ds02t00.directory.ray.com (8.12.10/8.12.1) with ESMTP id i07GJtZK008242; Wed, 7 Jan 2004 16:20:33 GMT Original-Received: Received: from L75001820.sdo.us.ray.com ([192.27.58.82]) by ds02t00.directory.ray.com (8.12.10/8.12.9) with ESMTP id i07GJiGn008050 sender seh@panix.com; Wed, 7 Jan 2004 16:19:47 GMT Original-Received: from sharr by L75001820.sdo.us.ray.com with local (Exim 4.24) id HR4O1H-000368-E7; Wed, 07 Jan 2004 08:20:05 -0800 Original-To: John Owens Mail-Followup-To: John Owens , ding@gnus.org In-Reply-To: (John Owens's message of "Tue, 06 Jan 2004 16:24:53 -0800") User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Rational FORTRAN, cygwin32) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55795 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55795 --=-=-= John Owens writes: > Unfortunately, the file structure for gnus is fairly complex. Kai > points out that he synchs the following files to move state: I agree that the set of files is daunting. In particular, the split between having a few files littered in the home directory versus entire trees of relevant files makes using rsync difficult. It would be much easier if all settings were rooted under one directory, and better partitioned therein by server. After fiddling around with rsync for an entire day trying to understand inclusion and exclusion lists, I still wound up finding success only by running it twice: once to exchange a few files in my home directory, again to exchange most of the files under the main Gnus directory. Find the program attached, called 'gnusync.' --=-=-= Content-Disposition: attachment; filename=gnusync #!/bin/sh CMD='rsync -e ssh -lptD -vuzb --exclude='*~'' REMOTE=Panix:~/temp/sync/gnus HOME_FILES=".newsrc .newsrc.eld .bbdb .diary" NEWS_DIR="$HOME/doc/news" OP=$1 case $OP in get) shift 1 cd $HOME $CMD -r $* $REMOTE/home/ . cd $NEWS_DIR $CMD -r $* $REMOTE/news/ . ;; put) shift 1 cd $HOME $CMD $* $HOME_FILES $REMOTE/home/ cd $NEWS_DIR $CMD -r --delete \ --exclude='/agent/' \ $* . $REMOTE/news/ ;; *) PROG=`basename $0` echo "Usage: $PROG (get|put)" exit 1 ;; esac --=-=-= -- Steven E. Harris --=-=-=--