Backing Up The KeePass Configuration
KeePass stores its configuration in an external file, not in the database. This allows KeePass to retain session settings independent of which database you use, or if you don't have a database open. The configuration file is stored in different locations depending on its use, or the user's requirements.
Everything from window position to plug-in settings are stored in the configuration file. This ensures your plug-ins load correctly and any triggers you have created are loaded ready for use.
KeePass data includes:
Certain KeePass data is protected from casual change by the user.
This data is saved to the Global Configuration File.
When KeePass is installed via the setup program, this file is protected by Windows.
The user configuration file is called KeePass.config.xml and the default location is in the KeePass directory under the user's "APPDATA" directory.
The easiest way to see this location is to use Windows %APPDATA% environment variable.
%APPDATA% in the Address boxThe global configuration file is stored in the same directory as KeePass.exe.
In a default installation this is C:\Program Files\KeePass Password Safe 2, or C:\Program Files\KeePass2x if you have used the MSI installer.
The user configuration file can be stored in other locations as shown on the KeePass Configuration Page
You can copy the file to another location, add it to your backup or image the whole disk. It's up to you what method you use and where you place the backup copy.
To restore the configuration file you need to find the current configuration file and then copy the backup over that file, but you must close KeePass first.
Triggers are stored in the configuration file and you can backup and copy them independently of the configuration file.
Method 1
Method 2