How to backup PhPeace

PhPeace consists of several directories: application code, uploaded files, resized images, static pages, configuration files and so on.

If you want to take a backup and be sure that you can restore the whole application quickly, just backup everything, including of course the database.

However this could take a large amount of space, so if you want to save time and storage in your backup process, then read the following instructions, keeping in mind that if you dont' save the whole thing you may have to do some manual operations after the restore.

So, to summarize, the minimum set of data that you have to backup is

  • a dump of the database
  • your configuration (in custom/config.php)
  • all uploaded files are saved in the uploads directory, however this includes also resized images, that could be generated again from a copy of the original ones only. So what you really need to backup is
    • uploads/banners/orig
    • uploads/covers/orig
    • uploads/custom
    • uploads/docs
    • uploads/graphics/orig
    • uploads/images/orig
    • uploads/keywords/orig
    • uploads/orgs/orig
    • uploads/orgs/docs
    • uploads/videos/orig
  • if you edit the XSL and/or the CSS style sheets directly and not only via the web interface, take a copy of the xsl and the pub/css directories