Browse Source

[Update] 添加backup脚本

pull/1702/head
ibuler 6 years ago
parent
commit
14b1e3fa13
  1. 10
      utils/backup_db.sh

10
utils/backup_db.sh

@ -0,0 +1,10 @@
#!/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
Loading…
Cancel
Save