Database Backup Scripts
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.org
init.sh
local-dump.in
mysql_dump_all.sh
postgresql_dump_all.sh
slapcat.sh

README.org

Database Backup Scripts

About

This scripts dump databases only. Use other backup programs to copy dump to other locations.

How to use

  • choose DATABASE_BACKUP_TOP_DIR
    • example: DATABASE_BACKUP_TOP_DIR=/home/_database
  • git clone git://github.com/znz/database-backup.git $DATABASE_BACKUP_TOP_DIR
  • cd $DATABASE_BACKUP_TOP_DIR
  • pager init.sh
  • sudo ./init.sh

Requirements

  • Debian or Ubuntu
  • /bin/sh
  • /etc/cron.daily
  • tmpreaper
  • ionice

When dump MySQL

  • /var/lib/mysql
  • /usr/bin/mysqldump and /etc/mysql/debian.cnf
  • xz

When dump PostgreSQL

  • /var/lib/postgresql
  • /usr/bin/pg_dump

When slapcat

  • /var/lib/ldap
  • slapcat

License

MIT License. Copyright (C) 2012 Kazuhiro NISHIYAMA