Skip to content

Instantly share code, notes, and snippets.

@ajohnstone
Created November 26, 2012 13:36
Show Gist options
  • Save ajohnstone/4148226 to your computer and use it in GitHub Desktop.
Save ajohnstone/4148226 to your computer and use it in GitHub Desktop.
mkdir -p /opt/graphite/storage
mount -onoatime,nodiratime,nobarrier -t xfs /dev/xvdf /opt/graphite/storage
find /opt/graphite/storage/whisper/stats/collectd_bk -type f | while read file; do
dest=$(echo $file | sed 's/collectd_bk/collectd/g')
mkdir -p $(dirname $dest)
echo $dest;
rsync --recursive --perms --times --whole-file --ignore-existing $file $dest;
if [ -e "$file" ]; then
/opt/whisper/bin/whisper-merge.py $file $dest
fi
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment