更新 'Shell-MD/归档备份'
This commit is contained in:
parent
612f8b4657
commit
a6d3a7ef77
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue