From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10226 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: Synchronizing multiple computers Date: Mon, 28 Jan 2008 22:34:20 +0100 Organization: T-Online Message-ID: References: <87ir1d7mye.fsf@hbox.dyndns.org> <87bq75669s.fsf@arcor.de> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1201560071 26084 80.91.229.12 (28 Jan 2008 22:41:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 22:41:11 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Jan 28 23:41:30 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJcfM-0003I2-FD for gegu-info-gnus-english@m.gmane.org; Mon, 28 Jan 2008 23:41:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJcev-0005c0-LN for gegu-info-gnus-english@m.gmane.org; Mon, 28 Jan 2008 17:40:57 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 71 Original-X-Trace: news.t-online.com 1201556339 02 5398 jZQN1cRlgqK8Ulm 080128 21:38:59 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: G5mFCyZvgeyOecpS+bdqxkcv4TfUZM6zpysu8gPYLVq5q9miGnKh6X X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:halEjODhxVmEkfLIq5aMIqFAk9s= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80437 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10226 Archived-At: 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/