#!/bin/bash

# first, generate the out-of-mysqld copy
# fill in the right password for -p!
mysqlhotcopy genomics_test --allowold --tmpdir=/opt/tmp/ --method=cp \
	-u genomics -p \
	/opt/mysql/backup/

# next, chown the directory to kkeller
# (or whoever will have the crontab entry)
# this enables rsync over NFS, so no passwords need to be
# passed anywhere (should be slightly faster than rsync-over-ssh, too)
chown -R kkeller /opt/mysql/backup/genomics_test

# finally, rsync as kkeller (see genomics_test-backup-2.sh)
