Created
February 4, 2012 12:08
-
-
Save brokendish/1737461 to your computer and use it in GitHub Desktop.
N日前のログをTRAで固めて削除する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#N日前のログをTRAで固めて削除する | |
find ./access.log* -mtime +20|xargs tar cvzf 2011_access.log.tar.gz | |
find ./access.log* -mtime +20|xargs rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment