#!/bin/bash
# /usr/local/bin/syncabook
# http://crystalfaeries.net/posix/bin/syncabook
# celeste:crystalfaery 2016-04-16 04:19:45+00:00
# Synchonize AddressBook data
echo "======= ======= $0 $1 ======= ======="
# update me from my twin
echo "rsync -auvzH $1 `my_twin`:~/.abook/* ~/.abook"
rsync -auvzH $1 `my_twin`:~/.abook/* ~/.abook
2vcard -f abook -i ~/.abook/addressbook -o ~/.abook/abook.vcard
# update my twin from me
echo "rsync -auvzH $1 ~/.abook/* `my_twin`:~/.abook"
rsync -auvzH $1 ~/.abook/* `my_twin`:~/.abook
echo "------- ------- $0 $1 ------- -------"
syntax highlighted by Code2HTML, v. 0.9.1