All Projects → fukawi2 → pgsql-backup

fukawi2 / pgsql-backup

Licence: GPL-2.0 license
PostgreSQL Backup Script. Ported from AutoMySQLBackup.

Programming Languages

shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to pgsql-backup

butdr
Backup to Cloud( Google Drive, Dropbox ... ) use rclone
Stars: ✭ 49 (+104.17%)
Mutual labels:  backup, cron, backup-script
VestaCP-Sync-Backups-To-Mega
VestaCP: uploading backups to the MEGA cloud
Stars: ✭ 17 (-29.17%)
Mutual labels:  backup, cron, backup-script
emsm
A lightweight, easy to extend minecraft server manager.
Stars: ✭ 72 (+200%)
Mutual labels:  backup, cron
gitlab-mattermost-backup
A simple backup script for mattermost in gitlab omnibus package
Stars: ✭ 23 (-4.17%)
Mutual labels:  backup, backup-script
s3-mongo-backup
Mongodb backups to S3
Stars: ✭ 18 (-25%)
Mutual labels:  backup, backup-script
Automation-using-Shell-Scripts
Development Automation using Shell Scripting.
Stars: ✭ 41 (+70.83%)
Mutual labels:  backup, cron
elasticsearch-shell-backup
Elasticsearch 2, 5 shell script backup utils.
Stars: ✭ 18 (-25%)
Mutual labels:  backup, backup-script
docker-backup-to-s3
Docker container that periodically backups files to Amazon S3 using s3cmd and cron
Stars: ✭ 124 (+416.67%)
Mutual labels:  backup, cron
linux-android-backup
Back up your device without vendor lock-ins, using insecure software or root. Supports encryption and compression out of the box. Works cross-platform.
Stars: ✭ 119 (+395.83%)
Mutual labels:  backup, backup-script
Bash Toolkit
Este proyecto esá destinado a ayudar a los sysadmin
Stars: ✭ 13 (-45.83%)
Mutual labels:  backup, cron
Roam To Git
Automatic RoamResearch backup to Git
Stars: ✭ 489 (+1937.5%)
Mutual labels:  backup, cron
Mysqlbkup
Lightweight MySQL backup script in BASH
Stars: ✭ 129 (+437.5%)
Mutual labels:  backup, cron
bash-backup
Simple backup script for GNU/Linux servers
Stars: ✭ 76 (+216.67%)
Mutual labels:  backup, backup-script
raptor
The definitive EasyEngine installer with fully functional backup-restore and SFTP functionalities included
Stars: ✭ 26 (+8.33%)
Mutual labels:  backup, backup-script
virtnbdbackup
Backup utiliy for Libvirt / qemu / kvm supporting incremental and differencial backups.
Stars: ✭ 62 (+158.33%)
Mutual labels:  backup, backup-script
auto-mysql-backup
a wrapper for automysqlbackup
Stars: ✭ 19 (-20.83%)
Mutual labels:  backup, backup-script
kube-dump
Backup a Kubernetes cluster as a yaml manifest
Stars: ✭ 142 (+491.67%)
Mutual labels:  backup, backup-script
mmd-gitlab-backuper
a package to backup from all projects that you have on gitlab
Stars: ✭ 27 (+12.5%)
Mutual labels:  backup, backup-script
btrfs-backup
A simple, flexible script for versioned backups using btrfs and rsync
Stars: ✭ 59 (+145.83%)
Mutual labels:  backup, cron
Restic Systemd Automatic Backup
My restic backup solution using Backblaze B2 storage, systemd timers (or cron) and email notifications on failure.
Stars: ✭ 314 (+1208.33%)
Mutual labels:  backup, cron

pgsql-backup

A script for automated backups of PostgreSQL Databases

Overview

This script is designed to be run daily, but can be run more often. Rolling daily, weekly and monthly backups are created in the specified location for each database requested to be backed up. Backups can be optionally compressed to save diskspace. Backups can also be optionally emailed as attachments.

Installation and Usage

A Makefile is included; running make install will install to /usr/local

make install

Use PREFIX to change install location

make PREFIX=/opt install

You will probably want the script to run on a regular basis; you can do this using cron. Create /etc/cron.d/pgsql-backup with the following contents:

0 1 * * * root /usr/local/bin/pgsql-backup

This will run the script at 1.00am every day. Refer to the cron man page for more information about scheduling with cron.

Configuration

Refer to the man page for full details of all available configuration options. At a minimum, you will most likely need to ensure the following options are valid for your environment:

  • CONFIG_BACKUPDIR

  • CONFIG_PGUSER

  • CONFIG_PGPASSWORD

  • CONFIG_PGHOST

  • CONFIG_PGPORT

  • CONFIG_PGDATABASE

PostgreSQL Configuration

Refer to the man page for details about configuring PostgreSQL permissions in an appropriate manner for pgsql-backup.

Acknowledgements

This script is a fork of "MySQL Backup Script" version 2.5 Copyright © 2002-2003 [email protected] distributed under the GPLv2 license and available from:

http://sourceforge.net/projects/automysqlbackup/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].