[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: freeing up iceweasel .sqlite file size (was: Re: regards the /)



On Fri, Sep 30, 2011 at 08:42:48PM +0200, Steven wrote:
> I have written a small script (3 lines) to keep track of that:
> for f in ~/.mozilla/firefox/*/*.sqlite; do ls -lh $f ; done
> time for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;';
> done
> for f in ~/.mozilla/firefox/*/*.sqlite; do ls -lh $f ; done

Its very noisy, what about:

echo "Starting to Vacuum ... "
df -h
time for f in /home/*/.mozilla/firefox/*/*.sqlite; 
  do 
      echo "Vacuuming ... $f"; 
      sqlite3 $f 'VACUUM;';
  done
df -h


-- 
"Religion is excellent stuff for keeping common people quiet."
   -- Napoleon Bonaparte


Reply to: