mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
12 lines
243 B
Bash
Executable File
12 lines
243 B
Bash
Executable File
#1/bin/env bash
|
|
|
|
HOST=pdb@www.peeringdb.com
|
|
FILE=pdb-latest-$$.sql
|
|
|
|
set -x
|
|
ssh $HOST "mysqldump --opt peeringdb -r $FILE"
|
|
#ssh $HOST "xz -f $FILE"
|
|
# no compression because the CPU cries
|
|
scp $HOST:${FILE} pdb-latest.sql
|
|
ssh $HOST "rm -f $FILE"
|