Merge pull request #1702 from jumpserver/dev

Dev
pull/2638/head
老广 2018-08-16 06:19:27 -05:00 committed by GitHub
commit 5470ab752e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -13,7 +13,7 @@ def get_assets_by_id_list(id_list):
def get_assets_by_fullname_list(hostname_list):
return Asset.objects.get_queryset_by_fullname_list(hostname_list)
return Asset.get_queryset_by_fullname_list(hostname_list)
def get_system_user_by_name(name):

10
utils/backup_db.sh Executable file
View File

@ -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