DAOS: Get FileCount and RepositorySize on Linux

March 12, 2010 – 9:11 pm

Migrated a Windooze server to Linux today. The files on the server are DAOS enabled and I wanted to get the number of files in the DAOS repository and the overall filesize.

Here is a small shell script that does the job

#!/bin/sh
REPOSITORY=/local/daos
OUTFILE=/local/daos.txt
fCount=`find $REPOSITORY -type f | wc -l`
fSize=`du -ksb $REPOSITORY`
IFS=”/”
array=($fSize)
fDate=$(date +”%d-%m-%Y”)
echo $fDate / $fCount / ${array[0]}>> $OUTFILE

On a daily basis, triggered by cron, it appends a new line like this one to the file defined in the OUTFILE variable

12-03-2010 / 26235 / 18743907789

You can now use the file to create charts with Dojo for example. Maybe there is a better way to accomplish the aim, but this works for me and perhaps it is useful for someone else.

Related posts:

  1. An important warning when using DAOS with Domino 8.5.2
  2. BLUG meeting and a DAOS problem
  3. DAOS – Optimization in Domino 8.5.1
  4. DAOS – Where do these files come from?
  5. DAOS: Transaction Protocol Trap

Sorry, comments for this entry are closed at this time.