Backup file

Database backups/exports are stored in a .zip file.

The ZIP folder structure is as follows:

  • ./letters.xml             => Stores meta-data of all letters.
  • ./Documents/          => Contains multiple folders that are named by the letters ID.
  • ./Documents/ID      => Contains all files for the letter with this ID.

 

The letters.xml file contains all meta-data and its structure looks like this:

<data>
          <letter id date>
                    <subject></subject>
                    <recipient></recipient>
                    <sender></sender>
                    <description></description>
                    <category></category>
                    <tag></tag>
                    <document></document>
          </letter>
</data>

 

Further notes to the elements:

  • <data> => Contains all elements.
  • <letter> => Has the attributes id (integer) and date ("yyyy-MM-dd" format).
  • <tag> => Stores documents name, one element for each document.
  • <documet> => Stores documents name, one element for each document.