Skip to content

Instantly share code, notes, and snippets.

@markrmiller
Created March 8, 2017 22:57
Show Gist options
  • Save markrmiller/e409d15e85b8c85cca888f7753c3f58a to your computer and use it in GitHub Desktop.
Save markrmiller/e409d15e85b8c85cca888f7753c3f58a to your computer and use it in GitHub Desktop.
rsync lucene-solr checkout to remote machine
dir=$(basename $PWD)
rsync -azvp --stats --delete --exclude='.git/' --filter=':- .gitignore' --rsync-path="mkdir -p ~/beast/$dir && rsync" . ${hosts[$i-1]}:~/beast/$(basename $dir)
rsync -azvp --stats --delete solr/core/src/test-files/solr/collection1/lib ${hosts[$i-1]}:~/beast/$dir/solr/core/src/test-files/solr/collection1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment