From a6d3a7ef770bba2d7d34061dd39731e3f95f552e Mon Sep 17 00:00:00 2001 From: diandian Date: Sat, 22 Apr 2023 22:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Shell-MD/=E5=BD=92?= =?UTF-8?q?=E6=A1=A3=E5=A4=87=E4=BB=BD'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shell-MD/归档备份 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shell-MD/归档备份 b/Shell-MD/归档备份 index 4550670..5ef9fe0 100644 --- a/Shell-MD/归档备份 +++ b/Shell-MD/归档备份 @@ -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 -``` \ No newline at end of file