Automated tool to make periodic backups of PostgreSQL databases

Emmanuel Bouthenot e382a03c7a Merge pull request #47 from stweil/master há 10 meses atrás
examples 6b870d49ca feat: Default configuration file /etc/default/autopostgresqlbackup is now deprecated in favor of /etc/autodbbackup.d há 1 ano atrás
services 0cf5254eba chore: add cron and systemd examples há 1 ano atrás
Changelog.md b407a01363 Fix some typos (found by codespell and typos) há 10 meses atrás
Documentation.md b407a01363 Fix some typos (found by codespell and typos) há 10 meses atrás
Makefile b44cbd8ad9 fix: build manpage from Documentation.md with pandoc há 1 ano atrás
Readme.md b407a01363 Fix some typos (found by codespell and typos) há 10 meses atrás
autopostgresqlbackup c92d3ae253 Fix license statement with old FSF address há 10 meses atrás

Readme.md

AutoPostgreSQLBackup

AutoPostgreSQLBackup is a shell script (usually executed from a cron job) designed to provide a fully automated tool to make periodic backups of databases (supports PostgreSQL and MySQL/MariaDB).

AutoPostgreSQLBackup extract databases into flat files in a daily, weekly or monthly basis.

Version 2.2 adds support for MySQL/MariaDB.

Version 2.0 is a full rewrite.

It supports:

  • Email notification
  • Compression on the fly
  • Encryption on the fly
  • Rotation (daily and/or weekly and/or monthly)
  • Databases exclusion
  • Pre and Post scripts
  • Local configuration

Usage

On Debian (or derived):

Install: apt install autopostgresqlbackup

That's it!

Documentation

See the documentation.

Manual page

Man page is build from the documentation using pandoc using the Makefile.

make man

History

  • 2023: Almost full rewrite with better error handling and new features (see Changelog.md for details)
  • 2019: Creation of a fork/standalone project on GitHub (https://github.com/k0lter/autopostgresqlbackup)
  • Since 2011: Various patches (fixes and new features) were added in the Debian package
  • 2011: AutoPostgreSQLBackup was included in Debian
  • 2005: AutoPostgreSQLBackup was written by Aaron Axelsen (with some contributions of Friedrich Lobenstock)

Authors

  • Emmanuel Bouthenot (Current maintainer)
  • Friedrich Lobenstock (Contributions)
  • Aaron Axelsen (Original author)