My management was not convinced about md5sum and rsync. They insisted that i write a script to compare the old and the new storage after rsync.
I wrote a script which look like below. The csv file was later imported to database and compared.
#!/bin/sh
echo `date`
RWXSIZEFILE=/home/floss/rwxsizefile.csv
rm -f $RWXSIZEFILE
touch $RWXSIZEFILE
find /u02 -name "*" -exec stat -c "%A, %s, %n" {} \; | tee -a $RWXSIZEFILE
echo `date`
Last edited by floss; 11-15-2009 at 01:46 PM.
|