[Evolution] Back up and restore procedures

Not Zed notzed@ximian.com
Fri, 21 Jan 2005 12:16:43 +0800


--=-yOfxzBktqpChLRRyJQbs
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2005-01-20 at 20:03 +0100, Bram Mertens wrote:

> On Thu, 2005-01-20 at 13:30 +0800, Not Zed wrote:
> > 
> > You should use gconftool-2 --dump xxxxx rather than shutting down
> > gconf and backing up the files - in some versions of gconfd, the file
> > locations changed.
> > 
> > There is also .gnome2_private/Evolution for any saved passwords.
> 
> Where can I read more about the gconftool-2? the man page doesn't
> mention the --dump option.

I don't know, gnome or gconf mailing list perhaps?

> gconftool-2 --help says:
>   --dump      Dump to standard output an
>               XML description of all
>               entries under a directory,
>               recursively.
> 
> But I can't find how the xml-file should be restored...
> I'd like to update my backup script as well but I'd like to read some
> docs about this first.
> 
> BTW gconftool-2 --dump > gconfdump.xml gives:
> Must specify one or more directories to dump.

Well that error message is pretty specific, and tells you all you need to know.

> Some more attempts:
> m8ram@imladris:~$ gconftool-2 --dump evolution > gconfdump.xml
> Failure listing entries in `evolution': Bad key or directory name:
> "evolution": Must begin with a slash (/)
> m8ram@imladris:~$ gconftool-2 --dump /evolution > gconfdump.xml
> 
> This results in:
> <gconfentryfile>
>   <entrylist base="/evolution">
>   </entrylist>
> </gconfentryfile>
> 
> finally this appears to be correct:
> gconftool-2 --dump /apps/evolution > gconfdump.xml

Looks right to me, all the keys are in /apps/evolution, why would they
be referenced any other way?

> Or isn't it?
> 
> Why would one like to back .gnome2_private/Evolution up? Does it contain
> more than just the passwords?

Well, I said above why you might like to.  It only contains passwords.

> TIA
> 
> Bram

--=-yOfxzBktqpChLRRyJQbs
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.5.3">
</HEAD>
<BODY>
On Thu, 2005-01-20 at 20:03 +0100, Bram Mertens wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Thu, 2005-01-20 at 13:30 +0800, Not Zed wrote:</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; You should use gconftool-2 --dump xxxxx rather than shutting down</FONT>
<FONT COLOR="#000000">&gt; gconf and backing up the files - in some versions of gconfd, the file</FONT>
<FONT COLOR="#000000">&gt; locations changed.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; There is also .gnome2_private/Evolution for any saved passwords.</FONT>

<FONT COLOR="#000000">Where can I read more about the gconftool-2? the man page doesn't</FONT>
<FONT COLOR="#000000">mention the --dump option.</FONT>
</PRE>
</BLOCKQUOTE>
I don't know, gnome or gconf mailing list perhaps?
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">gconftool-2 --help says:</FONT>
<FONT COLOR="#000000">  --dump      Dump to standard output an</FONT>
<FONT COLOR="#000000">              XML description of all</FONT>
<FONT COLOR="#000000">              entries under a directory,</FONT>
<FONT COLOR="#000000">              recursively.</FONT>

<FONT COLOR="#000000">But I can't find how the xml-file should be restored...</FONT>
<FONT COLOR="#000000">I'd like to update my backup script as well but I'd like to read some</FONT>
<FONT COLOR="#000000">docs about this first.</FONT>

<FONT COLOR="#000000">BTW gconftool-2 --dump &gt; gconfdump.xml gives:</FONT>
<FONT COLOR="#000000">Must specify one or more directories to dump.</FONT>
</PRE>
</BLOCKQUOTE>
<PRE>
Well that error message is pretty specific, and tells you all you need to know.
</PRE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Some more attempts:</FONT>
<FONT COLOR="#000000">m8ram@imladris:~$ gconftool-2 --dump evolution &gt; gconfdump.xml</FONT>
<FONT COLOR="#000000">Failure listing entries in `evolution': Bad key or directory name:</FONT>
<FONT COLOR="#000000">&quot;evolution&quot;: Must begin with a slash (/)</FONT>
<FONT COLOR="#000000">m8ram@imladris:~$ gconftool-2 --dump /evolution &gt; gconfdump.xml</FONT>

<FONT COLOR="#000000">This results in:</FONT>
<FONT COLOR="#000000">&lt;gconfentryfile&gt;</FONT>
<FONT COLOR="#000000">  &lt;entrylist base=&quot;/evolution&quot;&gt;</FONT>
<FONT COLOR="#000000">  &lt;/entrylist&gt;</FONT>
<FONT COLOR="#000000">&lt;/gconfentryfile&gt;</FONT>

<FONT COLOR="#000000">finally this appears to be correct:</FONT>
<FONT COLOR="#000000">gconftool-2 --dump /apps/evolution &gt; gconfdump.xml</FONT>
</PRE>
</BLOCKQUOTE>
Looks right to me, all the keys are in /apps/evolution, why would they be referenced any other way?
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Or isn't it?</FONT>

<FONT COLOR="#000000">Why would one like to back .gnome2_private/Evolution up? Does it contain</FONT>
<FONT COLOR="#000000">more than just the passwords?</FONT>
</PRE>
</BLOCKQUOTE>
Well, I said above why you might like to.&nbsp; It only contains passwords.
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">TIA</FONT>

<FONT COLOR="#000000">Bram</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-yOfxzBktqpChLRRyJQbs--