Instant PostgreSQL Backup and Restore How-to

Book description

A step-by-step guide to backing up and restoring your database using safe, efficient, and proven recipes

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Back up and restore PostgreSQL databases
  • Use built-in tools to create simple backups
  • Restore the easy way with internal commands
  • Cut backup and restore time with advanced techniques

In Detail

Backing up a database is something that all system admins must eventually face. Larger warehouses and critical enterprise data requires advanced techniques and tools to handle this complex data. PostgreSQL provides you with the basic tools for accomplishing this complex task.

"Instant PostgreSQL Backup and Restore How-to" is a practical series of proven recipes showing you how to preserve critical business data, and also teach you some advanced methods for restoring this data. It is a perfect manual for managing your critical PostgreSQL data.

Instant PostgreSQL Backup and Restore How-to is your practical guide to the unique features that PostgreSQL offers to create quick backups and efficient restores.

Starting by backing up a simplistic database and learning how-to restore it to working order, we then move on to more complex backup techniques including creating and restoring binary backups.

Covering advanced topics such as Warm and Hot standby restore and Streaming replication, Instant PostgreSQL Backup and Restore How-to gives you the power to make complete backups to guarantee you will always be able to restore your database to full working order!

Table of contents

  1. Instant PostgreSQL Backup and Restore How-to
    1. Instant PostgreSQL Backup and Restore How-to
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Errata
        2. Piracy
        3. Questions
    7. 1. Instant PostgreSQL Backup and Restore How-to
      1. Getting a basic export (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Restoring the export
          2. Exporting global objects
          3. Compressed backups
          4. Naming backups
      2. Partial database exports (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Compressed exports
          2. Table-only exports
          3. Schema-only exports
          4. Data and schema-only exports
      3. Restoring a database export (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Parallel database restore
          2. Database targeting
          3. Partial database restores
      4. Obtaining a binary backup (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Viewing backup progress
          2. Compressed tape archive backups
          3. Making the backup standalone
          4. Database clones
          5. Parallel compression
      5. Stepping into TAR backups (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Parallel compression
          2. Making a tar backup standby-ready
          3. Backing up tablespaces
          4. Backing up archived transaction logs
      6. Taking snapshots (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Proper snapshot sizing
          2. Snapshot backup targets
      7. Synchronizing backup servers (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Speeding up rsync
          2. Whole file sync
          3. Exclude transaction logs
      8. Restoring a binary backup (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. No extract for rsync backups
          2. Remote data copies
      9. Point in time recovery (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Named restore points
          2. Timelines
      10. Warm and hot standby restore (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Trigger a backup online
          2. Backup database promotion
          3. Hot standby
          4. Asynchronous archival
      11. Streaming replication (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Synchronous backup
          2. Synchronous backup caveates
          3. Streaming backups

Product information

  • Title: Instant PostgreSQL Backup and Restore How-to
  • Author(s): Shaun M. Thomas
  • Release date: March 2013
  • Publisher(s): Packt Publishing
  • ISBN: 9781782169109