Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: info-gnus-english@gnu.org
Subject: Re: Synchronizing multiple computers
Date: Mon, 28 Jan 2008 22:34:20 +0100	[thread overview]
Message-ID: <v9tzkxzlb7.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87bq75669s.fsf@arcor.de>

On Mon, Jan 28 2008, David wrote:

> http://www.emacswiki.org/cgi-bin/wiki/GnusSync
| To make things more concise, I like to put all files I want to sync
| in one central Gnus-directory. Create a directory ~/Gnus and put the
| following into your .gnus right at the beginning:
| 
| (setq gnus-home-directory "~/Gnus"
|       gnus-startup-file "~/Gnus/.newsrc"
|       message-directory "~/Gnus/Mail"
|       gnus-directory "~/Gnus/News"
|       gnus-article-save-directory "~/Gnus/News"
|       message-auto-save-directory "~/Gnus/Mail/drafts"
|       gnus-cache-directory "~/Gnus/News/Cache"
|       gnus-kill-files-directory "~/Gnus/News"
|       mail-source-directory "~/Gnus/Mail" 
| ; If you use the registry
|       gnus-registry-cache-file "~/Gnus/.gnus.registry.eld"
| ; If you use gnus-agent
|       gnus-agent-directory "~/Gnus/agent"
[...]
| I’m sure some of these are redundant since they are generated from
| others, 

,----[ (info "(gnus)Various Various") ]
| `gnus-home-directory'
|      All Gnus file and directory variables will be initialized from this
|      variable, which defaults to `~/'.
`----

,----[ (info "(message)Various Message Variables") ]
| `message-directory'
|      Directory used by many mailey things.  The default is `~/Mail/'.
|      All other mail file variables are derived from `message-directory'.
`----

| but I guess it does no harm to set them all explicitly.

It's confusing and error-prone, IMHO.

| rsync -e "ssh -l name" -auvzp workcomputer:./Gnus ~/.

Only ancient versions of rsync don't use ssh by default.  So this
could be...

$ rsync -auvzp name@workcomputer:./Gnus ~/.

| (defun DE-sync-gnus (arg)
|   (interactive)
|   (let ((bufname (get-buffer-create "*GNUS SYNC*")))
|     (switch-to-buffer bufname)
|     (call-process "/usr/local/bin/gnus-sync-script" nil bufname t arg)))

I'd suggest to get rid of the shell script and do it in elisp[1].
Within Emacs, the values of `gnus-directory', `message-directory',
`gnus-startup-file', ... are available, you can use them in the sync
function.  I'd guess that you don't even need to bother about frobbing
`gnus-home-directory' and `message-directory'.  Just rsync ~/.newsrc*,
~/Mail and ~/News.  Or am I missing something?
 
| (add-hook 'gnus-before-startup-hook (lambda () (DE-sync-gnus "fromwork")))
| (add-hook 'gnus-after-exiting-gnus-hook (lambda () (DE-sync-gnus "towork")))

Nice idea.  Maybe adding a prompt "Do you want to sync from ... to
...?" would make sense.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  reply	other threads:[~2008-01-28 21:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28 19:46 Martin Geisler
2008-01-28 20:31 ` David
2008-01-28 21:34   ` Reiner Steib [this message]
2008-01-28 23:32     ` David
2008-02-04 23:32     ` David
     [not found]     ` <mailman.6973.1202167981.18990.info-gnus-english@gnu.org>
2008-02-05 15:13       ` Gour
2008-02-10 11:25       ` Gour
2008-02-10 17:31         ` David
2008-01-28 21:37   ` Martin Geisler
2008-01-30 16:44     ` David
2008-01-30 17:40       ` Martin Geisler
     [not found]   ` <mailman.6686.1201630106.18990.info-gnus-english@gnu.org>
2008-01-30 16:04     ` Stefan Monnier
2008-01-30 17:57       ` Martin Geisler
2008-01-31 19:37         ` Reiner Steib
2008-02-01  7:37           ` Martin Geisler
     [not found]           ` <mailman.6834.1201851616.18990.info-gnus-english@gnu.org>
2008-02-01  8:19             ` Gour
     [not found]       ` <mailman.6759.1201715839.18990.info-gnus-english@gnu.org>
2008-01-31 11:50         ` Johan Bockgård
2008-02-01  7:35           ` Martin Geisler

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=v9tzkxzlb7.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --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).