.. _data-dir-ref: Data directory ============== Data directory can be located in several locations. There are defaults depending on your OS, and you can specify a custom its location. Two parts are splitting the data directory: the *root*, and the *target*. Defaults -------- +------------------------+--------------------------------------------------------------+ | OS | Default path | +------------------------+--------------------------------------------------------------+ | Windows 4.0 | %LocalAppData%\\Kiwi-Backup\\backup\\kiwi.conf | +------------------------+--------------------------------------------------------------+ | Windows 4.1 | C:\\ProgramData\\Kiwi-Backup\\backup\\kiwi.conf | +------------------------+--------------------------------------------------------------+ | Mac | ~/Library/Resources/Kiwi-Backup/backup/kiwi.conf | +------------------------+--------------------------------------------------------------+ | Linux Debian-derived | ~/.local/share/Kiwi-Backup/backup/kiwi.conf | +------------------------+--------------------------------------------------------------+ Alter defaults -------------- The data directory path is splitted in two parts, the *root* and the *target*. Each are editable. root ++++ The root is the base directory where data directories belonging to different installations are stored. The root is altered by the environment variable **KIWI_ALT_DATADIR** that you must set. target ++++++ The target is the datadir of the installation. It is made by the concatenation of two values in the info.json : **{companyName}/{productName}**. If one of these two is not in the file, there are no modification.