From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38351 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Possible FAQ entry: How do I archive/restore my (nnml) mail? Date: Mon, 27 Aug 2001 18:59:42 +0200 Message-ID: References: <87ofp2vfrh.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035174227 21882 80.91.224.250 (21 Oct 2002 04:23:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:23:47 +0000 (UTC) Cc: ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 11285 invoked from network); 27 Aug 2001 17:00:07 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 27 Aug 2001 17:00:07 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.6/8.11.6) with ESMTP id f7RH0Bh28937; Mon, 27 Aug 2001 19:00:11 +0200 Original-To: Rob Browning In-Reply-To: <87ofp2vfrh.fsf@raven.i.defaultvalue.org> (Rob Browning's message of "Sun, 26 Aug 2001 13:26:58 -0500") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 34 Xref: main.gmane.org gmane.emacs.gnus.general:38351 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38351 Rob Browning writes: > Q: How do I archive/restore my (nnml) mail? Inspired by this, I added a node on archiving mail, comments welcome: Archiving Mail -------------- Some of the backends, notably nnml and nnfolder, now actually store the article marks with each group. For these servers, archiving and restoring a group while preserving marks is fairly simple. (Preserving the group level and group parameters as well still requires ritual dancing and sacrifies to the `.newsrc.eld' deity though.) To archive an entire `nnml' or `nnfolder' server, take a recursive copy of the server directory. There is no need to shut down Gnus, so archiving may be invoked by `cron' or similar. You restore the data by restoring the directory tree, and adding a server definition pointing to that directory in Gnus. The *Note Article Backlog::, *Note Asynchronous Fetching:: and other things might interfer with overwriting data, so you may want to shut down Gnus before you restore the data. It is also possible to archive individual `nnml' or `nnfolder' groups, while preserving marks. For `nnml', you recursively copy the group's directory within the `nnml' server directory. For `nnfolder' you need to copy both the base folder file itself, and the file named by concatenating the base folder name with `.mkr'. Restoring the groups is done with `G m' from the Group buffer. The last step makes Gnus notice the new directory.