AP23/ap23/script/svbase.sh

6 lines
156 B
Bash
Executable File

#!/bin/bash
DAT=$(date "+%u")
ssh root@ap23 "mysqldump -u gsbadm -pgsbadm gsbvisite | gzip" > gsbvisite-$DAT.sql.gz
cp gsbvisite-$DAT.sql.gz latest.sql.gz