
Level 1 course introduces the fundamentals of backup and restore for PostgreSQL, covering logical backups, automation of backup tasks, and restoring from remote machines.
Master the fundamentals of backup and restore in PostgreSQL database, defining what constitutes a backup of data and structure. Learn how these operations impact availability.
Explore the importance of backup and restore in a PostgreSQL database and learn foundational concepts to protect data.
Explore the different techniques of backup and restore in PostgreSQL database, including point-in-time considerations, to understand how to back up and restore data.
Explore logical backups, or dumps, that recreate PostgreSQL databases by dumping objects in order, with human-readable output, and compare them to faster physical backups that copy data files.
Explore the sql dump approach for backing up and restoring a PostgreSQL database, including creating database objects, managing roles and privileges, and simulating a backup on a local machine.
Explore environment setup for a PostgreSQL database, including virtual machine basics with VirtualBox, installing the database, logging in, creating a sample database and data, and backup and restoration.
Learn how pg_dump functions as a PostgreSQL backup utility, with outputs in plain text or custom formats, and explore basic restore scenarios and command formats.
Learn how pg_dumpall enables comprehensive backups by dumping all databases and global objects in a PostgreSQL cluster, then prepare for restoration and recovery.
Explore psql, a terminal-based interactive tool, and learn backup and restoration workflows, including script-based dump generation for PostgreSQL.
Learn pg_restore basics to restore a PostgreSQL database to a specific state and time, with selective restoration, connection and command line options, and two modes.
Master how to back up PostgreSQL data using pg_dump, covering practical command usage, file naming, and timing considerations to ensure reliable backups.
Set and verify PostgreSQL environment variables on Windows or Linux by exporting variable values in the terminal, and understand temporary versus permanent scope.
Discover how to automate PostgreSQL authentication with the .pgpass file, by formatting its entries correctly, reading the file path, and running secure backup and restore commands.
Initiate a backup from a remote host by addressing remote connection and authentication, and use a copied dump utility to back up the database despite version mismatches.
Back up a PostgreSQL database and restore it on a remote machine with a different db version using dumps, and command line options to create or use the target database.
Demonstrates creating a custom-format backup with pg_dump (-Fc) and restoring it with pg_restore on a Fedora-based server after transferring the dump via scp, including a create database (-C) and verification.
Explore how the pg_restore -l option reveals the order and details of objects inside a PostgreSQL pg_dump custom format file, including internal reference numbers.
Use pg_dump with the -t option to back up specific tables, such as ac_brands and bad_records, into a plain text dump, then restore via psql and verify the results.
Back up only the data from a specified list of tables using a command line option, producing a data-only dump; learn how to restore the data with an alias-based command.
Learn to back up only the schema of specific tables with pg_dump using -s or --schema-only, as demonstrated for ac_brands and bad_records in a sample database.
Execute backups of a specified schema in PostgreSQL using pg_dump -n raj_schema, capturing the schema and associated objects and showing dump output to console when no output file is specified.
Learn to inspect a non plain text PostgreSQL backup by creating a custom dump with pg_dump, then read it with pg_restore and extract objects with -P and -t.
Learn how to retrieve the version information of Postgres utilities via the command line using the -V option. Compare and verify compatibility across database servers for backup and restore tasks.
Learn to back up a sample database with pg_dump to a file, enable verbose mode (-v/--verbose) to show the backup process sequence, and note the same option works with pg_dumpall.
Learn to create and restore PostgreSQL backups in tar format, including table data, ddl scripts, and dependency order, using command line options and the fbd restore utility.
Learn how to stop the restoration when an error occurs during a backup restore in PostgreSQL. Use command line options and transaction options to manage the restoration process.
Learn how to restore specified objects from a custom PostgreSQL dump file using the command line, selecting targets, and ensuring the restore commands stay in sync to avoid unwanted data.
Learn to dump a sample database and restore it into another database named test, using pg_dump and pg_restore to move data between production and dev or test environments.
Learn to backup and restore a database with different ownership or roles, using command flags to set the target owner.
Explore the difference between exit on error and single transaction options in pg_restore, within PostgreSQL backup and restore fundamentals. Understand how these options affect restoring a database.
Discover how to dump only global objects in a PostgreSQL cluster using pg_dumpall. Learn that global objects include roles and tablespaces, not databases, with the -g option.
Demonstrate dumping tablespaces across a PostgreSQL cluster with pg_dumpall -t, yielding a full_tablespace_dump.sql. The plain-text dump can be restored later using psql.
Dump only roles from the PostgreSQL cluster using pg_dumpall -r -f full_role_dump.sql, view the resulting plain-text file, and restore with psql.
Back up all databases in a PostgreSQL cluster with pg_dumpall and restore via psql, validating results from the full_db_dump.sql.
Explore physical backup and restoration techniques for PostgreSQL, compare physical and logical backups including dump approaches, and learn when to use each method with authentication, documentation, and ethical backup considerations.
Learn the key terminologies, basic concepts, implementation techniques that you will need to carry out the backup and restoration tasks in PostgreSQL database. Every concepts or topics are covered with hands on demo session to provide better clarity.
Many of the key concepts learned in this course can be applied on other databases as well.
Content and Overview
Through this course, comprising of 4 Sections, more than 35 lectures with Subtitles, Quiz chapters, Assignments, along with additional resources, you will
You can test the knowledge gained through the sessions by attending quizzes and every use case mentioned in the course are explained with demo sessions thereby enabling you to practice the newly learned skills.
I will add more contents to this course as and when possible.
Downloadable Resources
The backup and restoration scripts used are mostly of one liner form and hence you could watch those in the videos and use the same in your project. Whereas in certain demo sessions, complex scripts are used and the same has been attached as resources for you to download.
You can download the source code files used during the demo sessions, to practice at your end.
Learners who complete this course will gain the knowledge and confidence to implement a fully functional and automated Backup and Restoration solutions in the projects.