Created
June 4, 2013 18:18
-
-
Save cdimartino/5708204 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# Usage: curl -L gist.... | host=<sync origin> date=<sync date> | |
apt-get install -y pv | |
excludes='--exclude "*/SubscriptionChanges/*"' | |
rs_opts="-ai $excludes $host:/mnt/cassandra_snapshots/full/$date/place_directory_production /var/lib/cassandra/data/" | |
rsync $rs_opts | pv -arleps `rsync --dry-run $rs_opts | wc -l` > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment