changeset 23:9fd4948b4303

s.
author Robert McIntyre <rlm@mit.edu>
date Thu, 29 Jan 2015 20:47:48 -0800
parents d3b029607539
children 75db8d48c313
files backup-old-genesis-wiki.sh
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/backup-old-genesis-wiki.sh	Thu Jan 29 20:47:48 2015 -0800
     1.3 @@ -0,0 +1,14 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +TARGET_DIR=/mnt/aux/old-genesis-wiki/`date +%Y.%m.%d-%H.%M`
     1.7 +
     1.8 +mkdir -p $TARGET_DIR
     1.9 +
    1.10 +cd $TARGET_DIR
    1.11 +
    1.12 +echo "Backup wiki DB"
    1.13 +
    1.14 +mysqldump -h mysql.csail.mit.edu -pgenesis+123+ -u \
    1.15 +    genesis genesis > ./genesis-old-wiki.sql
    1.16 +
    1.17 +