PBKP CONTENT format

From ISPWiki

Jump to: navigation, search
The PBKP_CONTENT file is an xml-file that describes the 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 function in ISPmanager (see details below). The item name is kept in the "<elid></elid>" tag. If the file is kept along with any item (e.g. a dump or an e-mail file), its name is specified in the "<filename></filename>" tag. The items of one type (e.g. databases or e-mailboxes) are groped into the tag that is named according to the item type (e.g.
 
for the MySQL database).

Following is a full list of the item types:

  • mysql - MySQL database
  • postgresql - PostgreSQL database
  • email - e-mail boxes
  • 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 the 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