Re: backing up and restoring gconf keys
- From: Mark McLoughlin <markmc redhat com>
- To: Bram Mertens <bram-mertens linux be>
- Cc: gconf mailing list <gconf-list gnome org>
- Subject: Re: backing up and restoring gconf keys
- Date: Mon, 14 Feb 2005 10:05:21 +0000
Hi,
On Sun, 2005-02-13 at 14:34 +0100, Bram Mertens wrote:
> Hi
>
> I wrote a little script to automate backing up my evolution (version
> 2.0.3-1.2) settings. Essentially the script does this:
> evolution --force-shutdown
> tar -cjf /data/backup/YYYYMMDD.tar.bz2 ~/.evolution
> gconftool-2 --shutdown
> tar -cjf /data/backup/gconf/YYYYMMDD.tar.bz2 ~/.gconf/apps/evolution
>
> However recently I was told that I shouldn't save my gconf settings the
> way I do now. In stead I should use:
> gconftool-2 --dump /apps/evolution > /data/backup/gconf/YYYYMMDD.xml
>
> The result of this command does appear to contain all the relevant keys
> BUT I can't seem to find how I can restore these keys.
>
> What is the command I need to read this file back into gconf?
>
> Neither the gconftool-2 manpage nor http://www.gnome.org/projects/gconf/
> mention the dump option and the output of isn't very helpful to me...
>
> Perhaps gconftool-2 --load=/data/backup/gconf/YYYYMMDD.xml is what I
> need but how do I specify the directory the keys should be loaded into?
gconftool-2 --load foo.xml will restore the entries to the same
location they were dumped from. So, it'll work fine without any other
arguments.
Cheers,
Mark.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]