更新 'Shell-MD/归档备份'

This commit is contained in:
diandian 2023-04-22 22:37:59 +08:00
parent 612f8b4657
commit a6d3a7ef77
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,7 @@
要求:
打包压缩/var/log/nginx目录下所有内容,存放在/tmp/nginx目录里
压缩文件命名规范:yymmdd_logs.tar.gz,只保存七天内的文件,超过七天的文件会进行清理
```
#!bin/bash
date="$(date +%Y%m%d)"
dir='/tmp/nginx'
@ -34,4 +34,3 @@ fi
checkbak
backup
```