#!/bin/bash # # # A script for backing up files using rsync and providing periodic status # Val Schmidt # Lamont Doherty Earth Observatory # 25 Mar 2002 # # # To Do: # Remove verbose output to rsync.log # Only execute rsync if ray is reachable # RAY_SYNC_LOG=/home/vschmidt/rsync/ray-rsync.log # Delimit the log entries echo "******************************" >> $RAY_SYNC_LOG date >> $RAY_SYNC_LOG # Synchronize file systems on ray and the laptop. Write results to rsync.log rsync -avz --delete --rsync-path /usr/local/extra/bin/rsync --exclude-from /home/vschmidt/rsync/rsync_exclude_list -e ssh /home/vschmidt/ vschmidt@ray:/local/home/backup/vschmidt/ >> $RAY_SYNC_LOG echo "******************************" >>$RAY_SYNC_LOG