#!/bin/bash
#                      /usr/local/bin/syncrawdog
# http://crystalfaeries.net/posix/bin/syncrawdog
# celeste:crystalfaery 2020-07-14 23:39:08+00:00

let	result=0	#	success
echo	"`now`	=======	$0	=======	$1	======="	|| let result=1		# counting forwards from beginning of file

# sync to server
cd	$HOME		||	exit	-1
echo   "rsync	-auvH	crystalfaeries.net/{rawdog.*,foafroll.xml,opml.xml,newsfeeds.txt}	`my_twin`:~/crystalfaeries.net/"
	rsync	-auvH	crystalfaeries.net/{rawdog.*,foafroll.xml,opml.xml,newsfeeds.txt}	`my_twin`:~/crystalfaeries.net/

let	result=$?		# save the result code to return as my result code (pass through unless we override with our own error)
echo	"`now`	-------	$0	-------	$1	-------"	|| let result=255	# counting backwards from end of file
exit	$result
