Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提个小建议 #13

Open
kane-abbe opened this issue May 12, 2023 · 0 comments
Open

提个小建议 #13

kane-abbe opened this issue May 12, 2023 · 0 comments

Comments

@kane-abbe
Copy link

log_file="cloudflare.log"
是否可改为
log_file="cloudflare_$(date +%Y%m).log"
按月份记录日志并且增加删除3个月以前的日志
rm -f cloudflare_$(date -d '3 months ago' +%Y%m).log
这样可以防止忘记删除日志导致空间被占用过多,相信有一部分人放在路由器上同步ddns的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant