Author: degenaro Date: Tue Sep 22 19:23:04 2015 New Revision: 1704701 URL: http://svn.apache.org/viewvc?rev=1704701&view=rev Log: UIMA-4539 uima-ducc-vm files purged > 7 days
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh?rev=1704701&r1=1704700&r2=1704701&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh (original) +++ uima/sandbox/uima-ducc/trunk/uima-ducc-examples/src/main/uima-ducc-vm/cron/cleanup.sh Tue Sep 22 19:23:04 2015 @@ -19,21 +19,21 @@ # ----------------------------------------------------------------------- # this section reports what the script will remove -togo=`find /tmp/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +2 | wc -l` +togo=`find /tmp/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +7 | wc -l` echo Removing $togo directories in /tmp/degenaro/ducc/logs/ -find /tmp/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +2 | xargs -i ls -ld {} -togo=`find /home/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +2 | wc -l` +find /tmp/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +7 | xargs -i ls -ld {} +togo=`find /home/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +7 | wc -l` echo Removing $togo directories in /home/degenaro/ducc/logs/ -find /home/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +2 | xargs -i ls -ld {} -togo=`find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*" -mtime +1 | wc -l` +find /home/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +7 | xargs -i ls -ld {} +togo=`find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*" -mtime +7 | wc -l` echo Removing $togo directories in /tmp/ducc/driver/ -find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*" -mtime +1 | xargs -i ls -ld {} -togo=`find /tmp/ -maxdepth 1 -name "*.xml" -mtime +1 | wc -l` +find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*" -mtime +7 | xargs -i ls -ld {} +togo=`find /tmp/ -maxdepth 1 -name "*.xml" -mtime +7 | wc -l` echo Removing $togo xml files in /tmp # this section actually removes stuff -find /tmp/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +2 | xargs -i rm -rf {} -find /home/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +2 | xargs -i rm -rf {} -find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*" -mtime +1 | xargs -i rm -rf {} -find /tmp/ -maxdepth 1 -name "*.xml" -mtime +1 | xargs -i rm -f {} +find /tmp/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +7 | xargs -i rm -rf {} +find /home/degenaro/ducc/logs/ -maxdepth 1 -name "[0-9]*" -mtime +7 | xargs -i rm -rf {} +find /tmp/ducc/driver/ -maxdepth 4 -name "[0-9]*" -mtime +7 | xargs -i rm -rf {} +find /tmp/ -maxdepth 1 -name "*.xml" -mtime +7 | xargs -i rm -f {}