Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2016 September PostgreSQL: File System Level Backup to just Copy DATA Directory

PostgreSQL: File System Level Backup to just Copy DATA Directory

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

For reading this article title, Please do not surprise.
Yes, this is possible in PostgreSQL.

We can simply copy the PostgreSQL DATA Directory and can use as a full PostgreSQL Database Server backup.

postgres files ystem backup

The File System Level backup is not always recommended, but we can use this backup method in certain condition.

In our organization, I am managing PostgreSQL backup using two approaches.

The First approach is a regular method for taking individual Database Backup using pgDump.

The Second approach is to take “frozen snapshot” of the PostgreSQL DATA directory. Our System Admin department is taking File System Level Backup of PostgreSQL.

Whenever I required new duplicate PostgreSQL server, I used this kind of file system backup of PostgreSQL.

It is faster than pgDump because It does not require any additional CPU I/O as full DATA directory already available on DISK.
System Admin has to perform simple COPY and PASTE like any other file or folder.

Few Restrictions are:

The database server must be shut down in order to get a usable backup and disallowing all connections will not work.

It is impossible to restore only a table or few tables. A File system backups only work for complete backup and restoration of an entire database cluster.

If your data files and WAL log are on different disks, or if tablespaces are on different file systems, it might not be possible to use snapshot backup or file system level backup.

A file system backup will typically be larger than an SQL dump.

After restoring of file system backup, It requires to rebuild all your Database Indexes.(For improving the performance)

Sep 12, 2016Anvesh Patel
PostgreSQL: Create or Change default Tablespace of Table to Migrate on SSDPostgreSQL: CREATE PIVOT TABLE to arrange Rows into Columns form
Anvesh Patel
Anvesh Patel

Database Engineer

September 12, 2016 PostgreSQLAnvesh Patel, COPY, copy postgres data directory, database, database research and development, dbrnd, File System Level Backup, paste, performance, plpgsql, Postgres Query, postgresql, PostgreSQL Administrator, PostgreSQL Error, PostgreSQL Programming, PostgreSQL Tips and Tricks
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....