Commit 2b597b68 authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Added postgres paths to backup2l.

parent 05b37f99
symbiosis-backup (2012:0220) stable; urgency=low
[ Steve Kemp ]
* Avoid dumping MySQL databases if MySQL is no longer present.
* Attempt to dump all PostreSQL databases, if that is installed.
-- Steve Kemp <steve@bytemark.co.uk> Mon, 20 Feb 2012 16:00:00 +0000
[ Patrick J Cherry ]
* Make sure /var/backups/postgres is on the backup path, and
/var/lib/postgresql is not.
-- Patrick J Cherry <patrick@bytemark.co.uk> Tue, 21 Feb 2012 15:51:06 +0000
symbiosis-backup (2012:0215) stable; urgency=low
......
......@@ -6,7 +6,7 @@
# List of directories to make backups of. /var/backups/mysql is included here
# such that versioned database backups are kept.
#
SRCLIST=(/etc /root /srv /home /usr/local /var/mail /var/lib /var/spool/cron /var/backups/mysql)
SRCLIST=(/etc /root /srv /home /usr/local /var/mail /var/lib /var/spool/cron /var/backups/mysql /var/backups/postgresql)
# The following expression specifies the files not to be archived.
#
......@@ -16,7 +16,7 @@ SRCLIST=(/etc /root /srv /home /usr/local /var/mail /var/lib /var/spool/cron /va
# Exclude mysql binary dirs, as these are dumped to /var/backups/mysql before
# the backup. Also exclude php5 session files.
#
SKIPCOND=(-path "*.nobackup*" -o -name "*.o" -o '(' -path '/var/lib/mysql' -o -path '/var/lib/php5' ')' -prune )
SKIPCOND=(-path "*.nobackup*" -o -name "*.o" -o '(' -path '/var/lib/mysql' -o -path '/var/lib/php5' -o -path '/var/lib/postgresql' ')' -prune )
##################################################
# Destination
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment