#!/bin/sh
ssh tethysadmin@tethysdata "crontab -l" > tethysadmin.crontab.backup
rsync --times tethysadmin.crontab tethysadmin@tethysdata:/tmp 
ssh tethysadmin@tethysdata "crontab /tmp/tethysadmin.crontab && rm /tmp/tethysadmin.crontab"
echo "crontab for tethysadmin@tethysdata should now be the same as tethysadmin.crontab in this directory"
echo "diff (should be empty)"
ssh tethysadmin@tethysdata "crontab -l" | diff tethysadmin.crontab -
echo "you should probably commit the new crontab to the svn"
