1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh # update edits in past 3 hours rf=web:/var/www/wittamore.com mf=/home/philip/src/web/wittamore.com cd $mf files=`find * -path .git -prune -o -mmin -180 -type f ` for file in $files do scp -r "$file" "$rf/$file" done exit 0