Created
          November 26, 2012 13:36 
        
      - 
      
- 
        Save ajohnstone/4148226 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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