# Backup-Log-Script **Repository Path**: myDcool/Backup-Log-Script ## Basic Information - **Project Name**: Backup-Log-Script - **Description**: 备份日志文件的脚本 - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-09-28 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Backup-Log-Script #### 项目介绍 备份日志文件的脚本 #### 软件架构 1. 先将当前日志文件copy一份作为备份, 备份文件名的后缀为前一天 2. 用当前日志的最后50行覆盖当前日志的内容 #### 注意 如果日志写入速度很快, 担心备份过程中有丢失, 可以将"tail -50 $log" 中的50调大