PBKP CONTENT format

From ISPWiki

Jump to: navigation, search

PBKP_CONTENT is an xml-file that describes backup files and their settings. Each object is described with a binary tag "<item></item>". The tag contains a set of tags that describe parameters of this object necessary for its recovery. Their format matches the input format of the corresponding ISPmanager function (see details below). An item name is kept in the "<elid></elid>" tag. If the file is kept along with the item (e.g. a dump or an e-mail file), its name is specified in the "<filename></filename>" tag. Items of the same type (e.g. databases or mailboxes) are groped into the tag named according to an item type.

The following is a full list of the item types:

  • mysql - MySQL database
  • postgresql - PostgreSQL database
  • email - mailboxes
  • ftp - FTP accounts
  • zones - domain names
  • wwwdomain - WWW-domains
  • wwwredirect - WWW-redirects
  • emaildomain - e-mail domains
  • emailgroup - e-mail groups
  • emailredirect - e-mail redirects
  • cron - cron jobs
  • user - users

Example of the PBKP_CONTENT file:

<?xml version="1.0" encoding="UTF-8"?>
<doc>
  <version>1.0</version>
  <user>
    <item>
     <elid>test_user</elid>
     ... other tags ...
    </item>
  </user>
  <postgresql>
    <item>
      <elid>PostgreSQL->testdb</elid>
     ... other tags ...
      <filename>pbkp_testdbp.sql</filename>
    </item>
  </postgresql>
  <wwwdomain>
    <item>
      <elid>test.com</elid>
     ... другие тэги ...
    </item>
  </wwwdomain>
</doc>

To extract the item's parameters, pbackup sends the following requests to ISPmanager:

out=xml&func=function_name.edit&elid=item_name&needhash=yes

Following is the correspondence between item types and ISPmanager functions:

  • mysql - db
  • postgresql - db
  • email - email
  • ftp - ftp
  • zones - domain
  • wwwdomain - WWW domain
  • wwwredirect - WWW redirect
  • emaildomain - e-mail domain
  • emailgroup - e-mail group
  • emailredirect - e-mail redirect
  • cron - cron
  • user - user
Was this helpful? Yes | No
Personal tools