Skip to main content
Solved

postgres backup

  • February 10, 2025
  • 7 replies
  • 62 views

Forum|alt.badge.img+15

we have some DB server without archive enabled , how do we take backup for those , getting error while running says archive directory not found , in  this can which backupset to be configured , file system or dump

Best answer by Sunil

Hi ​@Ajal ,

How big are these databases we are talking about here? If they are big DBs, achieving 1 hour RPO with dump based backups is not practical. Please also note, pg_dump backup is not hot backup. It requires some locks on the database while dump operation is in progress and can impact the applications using the databases. All dump backups are full backups, there is no way to do incremental dump backups.

It’s highly recommended to enable WAL archiving and schedule frequent log backups + daily full backup to achieve customer’s required RPO.

 

Thanks,

Sunil-

View original
Did this answer your question?

7 replies

sbhatia
Vaulter
Forum|alt.badge.img+3
  • Vaulter
  • 17 replies
  • February 10, 2025

Hi Ajal, 

In this case, you will need to create a dump based backup. 

  • Create a pre-scrip to generate the a database dump. 
  • Configure File System backup backup to take the backup of the dump. 
  • Setup a post script to delete the old dumps created post backup. 

Hope this helps!


Forum|alt.badge.img+15
  • Author
  • Byte
  • 162 replies
  • February 10, 2025

@sbhatia  when i installed the agent there are 2 default backup set already created one if dumpbased backup set , i blv commvault automatically create dump when we start the backing it up does that work ?


sbhatia
Vaulter
Forum|alt.badge.img+3
  • Vaulter
  • 17 replies
  • February 10, 2025

yes you are right! Dump based backupset works here - this backup set will automatically create a dump before backing it up. 


Forum|alt.badge.img+15
  • Author
  • Byte
  • 162 replies
  • February 10, 2025

@sbhatia  ok , so the filesystebackupset only works if archive is enabled , or is there anyway we can take its backup ?


Sunil
Vaulter
Forum|alt.badge.img+13
  • Vaulter
  • 300 replies
  • February 10, 2025

@Ajal ,

When archive logging is disabled, FileSystem based backup can’t be used. FS based backup is hot backup and archive logs are needed to make the backup consistent.

You can use the Dump based backups. You don’t need to create any pre/post scripts. Please keep in mind, dump based backups are logical backups based on pg_dump utility and may require locks on the database objects during the dump.

 

Thanks,

Sunil-

 


Forum|alt.badge.img+15
  • Author
  • Byte
  • 162 replies
  • February 13, 2025

@Sunil  thank you sunil for your advise , if a customer require 1 hour or 2 hour rpo and not ready to enable archive , is it recommended to have incrementail backup or full backup every 1 or 2 hour 

 

or any workaround 


Sunil
Vaulter
Forum|alt.badge.img+13
  • Vaulter
  • 300 replies
  • Answer
  • February 13, 2025

Hi ​@Ajal ,

How big are these databases we are talking about here? If they are big DBs, achieving 1 hour RPO with dump based backups is not practical. Please also note, pg_dump backup is not hot backup. It requires some locks on the database while dump operation is in progress and can impact the applications using the databases. All dump backups are full backups, there is no way to do incremental dump backups.

It’s highly recommended to enable WAL archiving and schedule frequent log backups + daily full backup to achieve customer’s required RPO.

 

Thanks,

Sunil-


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings