Running tests on LANforge for long periods of time can leave a lot of data behind. The check_expired_data.bash script can find old files to delete.This file is similar to check_large_files.bash but looks at the age of files.Introduced in LANforge 5.4.5. | |
-dFind data within this directory (required)
-tFind data this many days old or older (required)
-f Delete files (not a default option)
-v Print files
See the files you would delete:
./check_expired_data.bash -d /home/lanforge/report-data -t 11 -v
Actually delete the files:
./check_expired_data.bash -d /home/lanforge/report-data -t 11 -f
You may create a script in /etc/cron.daily like this:
----- ----- ----- ----- ----- ----- ----- ----- -----
#!/bin/bash
LF='/home/lanforge'
E='/home/lanforge/scripts/check_expired_data.bash'
$E -d $LF/report-data -t 11 -f
$E -d $LF/html-reports -t 11 -f
----- ----- ----- ----- ----- ----- ----- ----- -----
12736 interop-5.4.5.apk
22164 btserver
23500 MonkeyRemote-0.4-shaded.jar
39500 gua.64
116536 local
190444 LANforgeServer-5.4.4
210004 LANforgeServer-5.4.5
262628 LANforgeGUI_5.4.4
267344 backup-lanforge-gui.tar
269196 LANforgeGUI_5.4.5
#!/bin/bash
LF='/home/lanforge'
E='/home/lanforge/scripts/check_expired_data.bash'
$E -d $LF/report-data -t 11 -f
$E -d $LF/html-reports -t 11 -f