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
#!/bin/bash | |
if [ -z "$1" -o -z "$2" -o -z "$3" ] | |
then | |
echo "Usage: remote-diff.sh [user@]host1 [user@]host2 path_to_file" | |
echo "" | |
echo "Note: If you need to specify a valid key or optional username for the host," | |
echo " you are encouraged to add the host configuration to your ~/.ssh/config file." | |
exit 1 | |
fi |
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
#!/bin/bash | |
servers[0]=server0.example.com | |
servers[1]=server1.example.com | |
servers[2]=server2.example.com | |
TMP_CERT_QUIT=/tmp/check_cert_quit.tmp | |
TMP_CERT_CHECK=/tmp/check_cert.tmp | |
if [ -f "$TMP_CERT_CHECK" ] |
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
#!/bin/bash | |
# autosvnsync.sh is a tool for automatically synchronizing/mirroring SVN repositories. | |
# By default, the script assumes that you have configured a "syncuser" account on the SRC and DEST servers, | |
# and that you are running the script as "syncuser" on the DEST server (presumably behind a firewall). | |
#Remote SVN info | |
SVN_HOST="[email protected]" #User and host, for SSH - alternatively, you can use ~/.ssh/config to specialize something | |
SVN_LOC="data/svn" | |
SVN_REPO="svn+ssh://$SVN_HOST/$SVN_LOC" |
NewerOlder