Welcome to DBA Master ! This blog is dedicated to all things related to database administration , SQL optimization , and performance tuning . Whether you're a beginner or a seasoned DBA, you'll find practical guides, troubleshooting tips, and real-world tutorials to help you work smarter with data. What to Expect: SQL performance tuning tips Indexing strategies Backup and recovery best practices High availability and replication techniques Database creation, configuration, and setup Monitoring queries and scripts for proactive performance management Migration guides across different database platforms Security essentials and best practices Recommended tools for DBAs Real-world error fixes and how to solve them Stay tuned — exciting content is coming soon. Feel free to bookmark and share: www.dbamaster.com ! Thanks for visiting!
1.Full Backup
- physical backup
- logical backup
- base backup
2.Incremental Backup
1.differential incremental backup (bart) - edb

2.cumulative incremental backup (barman)-opensource

1.Physical Backup //full backup only
1.soft or hold backup
server down time
cp -rf /var/lib/pgsql/11/data /backup/bk_1
soft or hold backup restore:
su - postgres
/usr/pgsql-11/bin/pg_ctl -D /backup/bk_1 start
2.hard or hot backup
server running
postgres=#select pg_start_backup('bk_1');
show lsn
cp -rf /var/lib/pgsql/11/data /backup/bk_1
postgre=#select pg_stop_backup();
show lsn
hard or hot backup restore:
su - postgres
/usr/pgsql-11/bin/pg_ctl -D /backup/bk_1 start
Comments
Post a Comment