backing up and restoring gconf keys



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?
m8ram imladris:~$ gconftool-2 --help
Usage: gconftool-2 [OPTION...]
[...]
  --dump	Dump to standard output an
                XML description of all
                entries under a directory,
                recursively.
  --load=STRING Load from the specified file
                an XML description of values
                and set them relative to a
                directory.

TIA
-- 
# Mertens Bram "M8ram"   <bram-mertens linux be>   Linux User #349737 #
# debian testing            kernel 2.6.8-1-686     i686     512MB RAM #
# 14:19:32 up 4 days, 18:06,  2 users,  load average: 0.18, 0.27, 0.18 #




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]