Initial commit

master
IhrFussel 2018-02-01 22:05:51 +01:00
parent 441741e451
commit 8526491a7e
1 changed files with 15 additions and 0 deletions

15
logmapsize.sh Normal file
View File

@ -0,0 +1,15 @@
path="" ### Add path to your map.sqlite
interval=1800 ### Log interval
logfile="" ### Define file to log the sizes
if [[ $path = "" ]]; then
echo "Open the script and enter the path to the map.sqlite file"
exit
fi
while true
do
getsize=$(du $path | grep -Eo "^[0-9]{1,}")
echo "$(date) -> $(($getsize/1024)) MB" >> $file
sleep $interval
done