download_db.sh 160 Bytes
Newer Older
1
#!/bin/bash
Rudel Fankep's avatar
Rudel Fankep committed
2
3
4
5
6
7
8
REMOTE_TARFILE=$1
LOCAL_DATABASE_DIRECTORY=$2
TARFILE=$3
cd $LOCAL_DATABASE_DIRECTORY
s3cmd get $REMOTE_TARFILE 
tar -xzvf $TARFILE
rm $TARFILE
Rudel Fankep's avatar
Rudel Fankep committed
9
cd -