You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
# 备份日期
|
|
date_str=`date +%Y%m%d%H%M%S`
|
|
|
|
# 备份的文件名称
|
|
FILE=/usr/local/Backup/es_backup_${date_str}.tar.gz
|
|
|
|
# 备份
|
|
tar zcvf $FILE /usr/local/esBackup
|
|
|
|
|