mirror of https://github.com/jumpserver/jumpserver
11 lines
203 B
Bash
11 lines
203 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
|
||
|
backup_dir='../data/backup/'
|
||
|
|
||
|
if [ ! -d $backup_dir ];then
|
||
|
mkdir $backup_dir
|
||
|
fi
|
||
|
|
||
|
mysqldump -uroot -h127.0.0.1 -p jumpserver > ${backup_dir}/jumpserver_$(date +'%Y-%m-%d_%H:%M:%S').sql
|