ossiejhmoore

rsync vm to external drive while working on it

Aug 8th, 2012
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. while(true)
  4. do
  5.     find '/Users/ossiemoore/Documents/Virtual Machines/clients/phillips66/' -type d -name 'caches' -exec rm -rf {} \;
  6.     find '/Users/ossiemoore/Documents/Virtual Machines/clients/phillips66/' -type d -name 'appListCache' -exec rm -rf {} \;
  7.     find '/Users/ossiemoore/Documents/Virtual Machines/clients/phillips66/' -type d -name 'appListCaches' -exec rm -rf {} \;
  8.     rsync -r -av --delete '/Users/ossiemoore/Documents/Virtual Machines/clients/phillips66' '/Volumes/WINDOWS/VirtualMachines/'
  9.     echo "[`date`] sleeping 10 minutes..."
  10.     sleep 600
  11. done
Advertisement
Add Comment
Please, Sign In to add comment