Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Brett Viren <brett.viren@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: Solution for gnus wide sync
Date: Sun, 12 Dec 2010 20:15:25 +0000 (UTC)	[thread overview]
Message-ID: <loom.20101212T210453-903@post.gmane.org> (raw)
In-Reply-To: <87k4n3e5kl.fsf@gmail.com>

Andi Albrecht <albrecht.andi <at> gmail.com> writes:

> I'm using Dropbox too for a while now and it works pretty well. The only
> thing I've never tried is to be logged in on both machines at the same
> time with a running Gnus on both. Dropbox has no automatic merging, so
> maybe this could cause some problems.

I played with using Dropbox but now I'm trying with git.  Here is what I do.

I have a "gnus.git" bare repository that I clone onto ~/gnus on workstation and 
laptop.  All emacs setup is same on both.

In .emacs:

(setq 
 gnus-startup-file "~/gnus/.newsrc"
 gnus-directory "~/gnus/"
 gnus-dribble-directory "~/gnus/"
 mail-source-directory "~/gnus/incoming/"
 gnus-cache-directory "~/gnus/cache/"
)

(add-hook 'gnus-after-exiting-gnus-hook
          (lambda ()
            (shell-command "gnus-sync push")))

At the very top of .gnus:

(shell-command "gnus-sync pull")

The "gnus-sync" script simply collects some git commands.  A push does:

    cd $HOME/gnus
    git add overview drafts .newsrc.eld
    git commit -a -m "State of gnus as of $(date)"
    git push

A "pull" does:

    cd $HOME/gnus
    git pull

Like with the dropbox approach it is possible to get conflicts when the 
pull/push cycle of one system overlaps with another.

The mail itself is synced from workstation to laptop using offlineimap in IMAP-
to-IMAP with dovecot serving both ends.

This seems to all work fairly well but some problems remain:

 * I have years of monthly outboxes on the workstation that are not synced to 
the laptop.  Each time the workstation runs gnus these get added as new groups 
and they can't be opened on the laptop.  I guess I can fix this by doing a 
monthly sync of some kind.

 * I still have the problem (posted previously) that most groups no longer load 
just new, unread articles but try to load all articles as if C-u ENTER was done 
on the group (instead of just ENTER).

-Brett.

  reply	other threads:[~2010-12-12 20:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4.1283465117.6661.info-gnus-english@gnu.org>
2010-09-02 22:19 ` Jason Earl
2010-09-03  0:09   ` Rafael
2010-09-03  5:53     ` Andi Albrecht
2010-12-12 20:15       ` Brett Viren [this message]
2014-02-18 15:04         ` regcl
2010-09-02 21:34 Paulo J. Matos
2010-09-04 17:57 ` Matt Lundin
2010-09-08 21:27   ` Paulo J. Matos

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=loom.20101212T210453-903@post.gmane.org \
    --to=brett.viren@gmail.com \
    --cc=info-gnus-english@gnu.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).