40 lines
1.0 KiB
Plaintext
Executable File
40 lines
1.0 KiB
Plaintext
Executable File
#/bin/sh -xe
|
|
. ~/.bin/_config
|
|
needs vdirsyncer-- mu-- isync-- git-- p5-iCal-Parser-- remind--
|
|
|
|
# snapshot
|
|
cd /home/sdk/.reminders
|
|
git add *
|
|
git commit -m "Update $(date +"%Y-%m-%d %H:%M:%S")" || true
|
|
|
|
# copy uugrn calendard to dalek
|
|
scp -q vorstand@vorstand.uugrn.org:private/Kalender/uugrn.rem \
|
|
sdk@home.codevoid.de:.reminders/uugrn.rem
|
|
|
|
# copy all calendars from dalek to local
|
|
scp -q sdk@home.codevoid.de:.reminders/\*.rem \
|
|
/home/sdk/.reminders/
|
|
|
|
# download vcal/vcard from icloud / radical
|
|
vdirsyncer sync
|
|
|
|
# create import.rem from ical events (XXX fix this mess)
|
|
find ~/.isync -name "*.ics" -exec cat {} + \
|
|
| ical2rem --no-todos \
|
|
| fgrep -v "REM MSG" \
|
|
| sed 's,\\n, ,g' \
|
|
| tr -d '\' \
|
|
| sed 's/ / /g' \
|
|
> /home/sdk/.reminders/import.rem
|
|
|
|
# create abook addressbook
|
|
cat /home/sdk/.isync/contacts/*.vcf \
|
|
| abook --convert --informat vcard --outformat abook \
|
|
> /home/sdk/.abook/addressbook
|
|
|
|
# sync email to offline
|
|
mbsync -a
|
|
|
|
# index email
|
|
mu index
|