16 lines
354 B
Bash
16 lines
354 B
Bash
path="" ### Add path to your map.sqlite
|
|
interval=1800 ### Log interval
|
|
logfile="" ### Define file to log the sizes
|
|
|
|
if [[ $path = "" ]]; then
|
|
echo "ERROR: 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" >> $logfile
|
|
sleep $interval
|
|
done
|