News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

backup settings?

Started by MoonKid, February 20, 2006, 07:02:19 PM

Previous topic - Next topic

MoonKid

How can I backup ALL my C::B settings?
Is there a backuproutine?

mandrav

Yes.
Copy all files from your profile folder (usually, just one file: default.conf).

Your profile folder is different depending on your OS. For example, in windows 2000/XP it would be "C:\Documents and Settings\<username>\Application Data\codeblocks" or "C:\Documents and Settings\<username>\Local Settings\Application Data\codeblocks", while in a typical linux system it would be /home/<username>/.codeblocks (notice the dot before "codeblocks").
Be patient!
This bug will be fixed soon...

MoonKid

> Copy all files from your profile folder (usually, just one file: default.conf).
> Your profile folder is different depending on your OS

I can not find any of this files or directories. There is no default.conf anywhere on my system!

Where does C::B store the settings on Win98se?

thomas

In that case, you probably use RC2 (it helps to always tell exactly what version you are using). RC2 stores its configuration in the registry (hkey_local_machine/software/codeblocks if I am not mistaken).

You can use Regedit to export the complete CodeBlocks key with all its children to a .reg file. Alternatively, RC2 allows import and export of configurations (somewhere in the Settings menu).
Please do note, however, that you will not be able to import your settings into more recent versions, as they use a completely different system than RC2 does.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

MoonKid

The export is buggy. The import "is not implemented". thx

I submited a feauter  #1819.

It could not be that there are so many different ways handling the settings of C::B.
There must be one os-independet way.

Then there can be easy import/export function.

thomas

Sorry, maybe we were not clear enough. There is only one way configuration is stored at this time, and that is an xml-based file (the one mandrav pointed out).

However, you are using the RC2 version which still uses an old configuration system. This system is indeed OS-dependent and it indeed uses the registry under Windows. That is why we moved away from it by early November last year. You can use regedit to store backups of your configuration (and reuse it with RC2), but you will not be able to transfer it to the recent release.

Also there will be absolutely no development in this direction. The RC2 configuration system is dead. I therefore closed that feature request.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

MoonKid

Great! :)

Is there a import/export in the nigthly, too?

tiwag

just copy the *.conf file(s) to another place

you can use multiple personalities (profiles) each has their own *.conf file,
default is default.conf when not using any personality