Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Every time you make a dump using CleverAnalytics Shell, a dump directory structure is created. Every dump is uniquely identified by its dump ID - a time stamp of when the dump was created. Format of the dump ID is "yyyy-MM-dd_HH-mm-ss".

All dumped metadata objects are saved to the file system in a wrapper, which contains detailed metadata about the object itself.

In addition, dump metadata (or "metadata about the metadata") file is created. It is used to store useful information, like dump time, or the original project ID. It is also used to store the dump content and to track local file changes.

Note

These directory structures and files are generated by Shell and should not be modified.

Dump structure

Dump directory structure is created either in:

  1. the default directory you specified in the config file (recommended)
  2. working directory, e.g. the directory you run Shell from
  3. the directory you specify as a value of --directory parameter of the dumpProject command

Let's assume that in this case, /var/local/metadata is our default directory. The dump structure is following:

Code Block
themeMidnight
/var/local/metadata/{projectId}/{dumpId}/

So, in practice:

Code Block
themeMidnight
/var/local/metadata/q1zdp9d0ao78rdv5/2017-08-28_20-17-51/

If we list the contents of this dump directory, we see data and metadata directories, and the dumpMetadata.json file (described below).

Code Block
themeMidnight
./
../
data/
dumpMetadata.json
metadata/
metadata/dashboards/
metadata/dataPermissions/
metadata/datasets/
metadata/exports/
metadata/indicatorDrills/
metadata/indicators/
metadata/markers/
metadata/markerSelectors/
metadata/metrics/
metadata/projectSettings/
metadata/views/

The data folder contains .csv files. The metadata folder contains subdirectories of the metadata object types. Each dumped file is wrapped in a dump object wrapper.

Dump object wrapper

Simple wrapper, which contains metadata about the dumped object.

...

URL link uniquely identifying the object

...

timestamp of when the object was dumped

...

version of the object

starts at 1, is incremented everytime the object is pushed to the project

...

the object itself

may contain valid content of one of metadata object types

Dump metadata file

The dumpMetadata.json file is located the dump directory, one level above the data and metadata directories. It contains metadata about the dump itself, and list of its contents.

...

ID of the dump

...

server, from where the project was dumped

...

ID of the project

...

human-readable title of the project

...

Panel
panelIconId1f389
panelIcon:tada:
panelIconText🎉
bgColor#E3FCEF

The content you are trying to reach has been moved here: https://docs.clevermaps.io/docs/dump-structure

We are proud to announce that we have launched a new documentation.

Please update your saved links and bookmarks to follow a new address docs.clevermaps.io.