Day notes - Thurs 7th Oct 2010
Wrote up some meeting notes from yesterday.
Noticed that our shared google calendars were empty. Allowed myself to get distracted by this and spent some time building a simple backup thing so that our calendars are now regularly uploaded to git. Using this Command line util and some cron magic.
# Min Hour Day Month Day of week Command 0 */2 * * * /path/to/bin/download-calendar http://link-to-google-calendar.ics /path/to/calendars >> /path/to/logs/download-calendar.log 2 */2 * * * cd /path/to/calendars && /path/to/git add . && /path/to/git commit -m "Updating calendars" && /path/to/git push > /dev/null
Spent longer than I’d hoped creating the backup thingy, partly because I was bitten by crontab treating the percent-sign as a newline. From the crontab manpage
Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input.