Taking and restoring application backups
In the real world, things can go wrong at any time, and you should always have a backup of your entire application that you can apply to restore the application to a happy state. An OpenShift application consists of a Git repository, one or more databases, environment variables, and a persistent data directory you should make a backup of. You can make database backups using command-line tools, such as mysqldump
, pg_dump
, and mongoexport
, but those only make backups of the respective databases. We will cover database backups in later chapters. In this recipe, you will learn how to use rhc to make and restore backups.
Getting ready
In order to prepare yourself for this recipe, you will need rhc installed on ...
Get OpenShift Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.