Permalink
Browse files

Don't try and backup Wordpress: it is gone.

  • Loading branch information...
1 parent 95b1aec commit ff81d65b564ae4f96e40853a40ddf5b371c0c410 @MikeMcQuaid committed Jun 1, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 mikemcquaid.com-backup.sh
View
@@ -10,18 +10,10 @@ REMOTE=/home/mike/Documents/Backup/Remote
cd /var/www/
tar jvcf $LOCAL/www.tar.bz2 *
-# Backup Wordpress database
-USERNAME=$(grep DB_USER /var/www/wordpress/wp-config.php | awk -F "'" '{print $4}')
-DATABASE=$(grep DB_NAME /var/www/wordpress/wp-config.php | awk -F "'" '{print $4}')
-PASSWORD=$(grep DB_PASSWORD /var/www/wordpress/wp-config.php | awk -F "'" '{print $4}')
-mysqldump -u "$USERNAME" --database "$DATABASE" --password="$PASSWORD" \
- | bzip2 -c > $LOCAL/wordpress.sql.bz2
-
# Backup private Git repositories
cd /home/mike/Documents/Git/
tar jvcf $LOCAL/git-private.tar.bz2 *
# Copy to NFS backup share
-cp -v $LOCAL/www.tar.bz2 $REMOTE
-cp -v $LOCAL/wordpress.sql.bz2 $REMOTE
+cp -v $LOCAL/www.tar.bz2 $REMOTE
cp -v $LOCAL/git-private.tar.bz2 $REMOTE

0 comments on commit ff81d65

Please sign in to comment.