#!/bin/bash # This script is supposed to reside in the root of local mirror. # Use this to test the changes # $ ./sync.sh --dry-run # This rsync's with deletions: # $ ./sync.sh --delete # Sync: local -> cr.openjdk.java.net # essentially delete everything on cr.openjdk.java.net rsync -a --progress -v -z --protocol=29 --exclude=sync.sh --exclude=.ssh . coleenp@cr.openjdk.java.net:~/ $* # Sync: cr.openjdk.java.net -> local # rsync -a --progress -v -z --protocol=29 --exclude=sync.sh --exclude=.ssh coleenp@cr.openjdk.java.net:~/ . $*