脚踏实地、勇往直前!
全部博文(1005)
发布时间:2019-04-03 11:09:32
#!/bin/bashbackup_date=`date "+%Y_%m_%d"`delete_date=`date +%Y_%m_%d -d "7 days ago"` backup_log=/home/yeemiao/shell/logs/gitlab_backup_${backup_date}.loggitlab-rake gitlab:backup:create >${backup_log}file_cnt=`find /var/opt/gitlab/backups -name "*${delete_date}*_gitlab_backup.tar"|wc .........【阅读全文】