Gnus development mailing list
 help / color / mirror / Atom feed
From: "Steven E. Harris" <seh@panix.com>
Cc: ding@gnus.org
Subject: Re: No Gnus feature request: simpler file structure for synching
Date: Wed, 07 Jan 2004 08:20:04 -0800	[thread overview]
Message-ID: <q67y8sjivd7.fsf@L75001820.us.ray.com> (raw)
In-Reply-To: <uk7441u7e.fsf@ece.ucdavis.edu> (John Owens's message of "Tue, 06 Jan 2004 16:24:53 -0800")

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

John Owens <jowens@ucdavis.edu> 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.'


[-- Attachment #2: gnusync --]
[-- Type: text/plain, Size: 548 bytes --]

#!/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

[-- Attachment #3: Type: text/plain, Size: 22 bytes --]


-- 
Steven E. Harris

  parent reply	other threads:[~2004-01-07 16:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07  0:24 No Gnus feature request: simpler file structure for synching between two machines John Owens
2004-01-07  7:22 ` No Gnus feature request: simpler file structure for synching Matt Armstrong
2004-01-07  8:27   ` Steve Youngs
2004-01-07 12:44   ` Kai Grossjohann
2004-01-07 14:28     ` Reiner Steib
2004-01-07 14:59       ` Kai Grossjohann
2004-01-07 17:42         ` nnir problems (was: No Gnus feature request: simpler file structure for synching) Reiner Steib
2004-01-07 16:20 ` Steven E. Harris [this message]
2004-01-08 22:23   ` No Gnus feature request: simpler file structure for synching Reiner Steib
2004-01-08 22:51     ` Steven E. Harris
2004-01-08 22:58       ` Paul Jarc
2004-01-07 17:07 ` John Owens
2004-01-07 17:47   ` Kai Grossjohann
2004-01-07 19:17     ` Josh Huber
2004-01-07 21:32       ` Simon Josefsson
2004-01-08 19:49     ` Steinar Bang
2004-01-11 21:49       ` Kai Grossjohann
2004-01-12 22:15         ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=q67y8sjivd7.fsf@L75001820.us.ray.com \
    --to=seh@panix.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).