From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31292 invoked from network); 10 Sep 2021 21:50:51 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 10 Sep 2021 21:50:51 -0000 Received: from localhost ([::1]:42130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOoQ5-0000Y2-1L for ml@inbox.vuxu.org; Fri, 10 Sep 2021 17:50:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOoPr-0000Vq-Ff for info-gnus-english@gnu.org; Fri, 10 Sep 2021 17:50:37 -0400 Received: from mail.ericabrahamsen.net ([52.70.2.18]:58774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOoPp-0003v3-1q; Fri, 10 Sep 2021 17:50:34 -0400 Received: from localhost (c-71-197-232-156.hsd1.wa.comcast.net [71.197.232.156]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 19D57FF1BA; Fri, 10 Sep 2021 21:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1631310623; bh=qmISm/TGWPvT5Ao0GUbNDsNGmRGvwp5zPUI7VV82ZoU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=knX9reWaHG6Le10ZH6OF4aNRjxbCnvugTf+8W7Kg7mZxEoWuP2uszliE/2x3HE20P ieUmrTpCpMSI9YvBeX12NRfnFNkmdfaUbSH7u3qpCZQec7ULak78jF01hXxMv8NvxB s0U06Owg35dCdq71bhRuhcklfr1FSrXJcYEPC37o= From: Eric Abrahamsen To: "Roland Winkler" Subject: Re: synchronizing gnus sessions on multiple computers References: <875yv9nxnn.fsf@gnu.org> <87pmtgn106.fsf@t14.reltub.ca> <87czpgku8w.fsf@gnu.org> Date: Fri, 10 Sep 2021 14:50:21 -0700 In-Reply-To: <87czpgku8w.fsf@gnu.org> (Roland Winkler's message of "Fri, 10 Sep 2021 16:15:11 -0500") Message-ID: <87k0joqew2.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 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: , Cc: info-gnus-english@gnu.org Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" "Roland Winkler" writes: > On Fri, Sep 10 2021, Bob Newell wrote: >> I have rsync'd gnus for years with success. In addition to the files >> already listed I sync .newsrc.eld, but that is updated infrequently. >> Not strictly gnus entries, but related closely enough, I also sync >> .authinfo and .msmtprc (as I use msmtp) and also .bbdb. > > Thanks to everyone who replied to this thread. > > When you are rsyncing gnus, are you doing this while emacs is running on > the different machines? Or are you starting a fresh emacs session after > all the files got updated on a machine? > > Digging through things I realized that .newsrc.eld seems to store > article marks. For example it sets gnus-newsrc-alist that holds an > assoc list of read articles. However, in a running emacs session the > same information is stored also in gnus-newsrc-hashtb. So the question > becomes: What steps are needed to fully restart gnus while emacs is > running so that internal variables such as gnus-newsrc-hashtb get > re-initialized, too. > > -- I realized that testing all this does not require two different > machines. But two instances of emacs running on one computer > effectively give the same situation to play with. It seems that a > running gnus session does not warn the user that another emacs instance > has fiddled with files such as .newsrc.eld. Is this true? Yes, the .newsrc.eld file only gets written when you save Gnus ("s" in the *Group* buffer), and I would absolutely not try to update files for a Gnus that's still running, it will not handle that gracefully. It should, however, be enough to shut Gnus down first (you can see the `gnus-clear-system' function to see what happens then), rsync, then restart Gnus.