If you are heavy Google Calendar user, must always export your events file to backup.
The below shell script is modified from Cpanel Auto Backup.
#!/bin/sh
myical="basic"
store_dir="/home/test/icalbackup" # The backup file directory path in local ex. /home/test/test1
file_keep_day=10 # the days that backup files will be kept (default: 10 day)
T=`date '+%m-%d-%Y'` # system date format MM-DD-YYYY
TS=`date '+%m-%d-%Y-%H%M%S'` # system date format MM-DD-YYYY-HhMinSS
#clean the files before $file_keep_day days
find $store_dir -name '*' -mtime +$file_keep_day | /usr/bin/xargs rm -f {}#Google Calendar Backup -- add the time stamp in the tail of file
wget http://www.google.com/calendar/ical/yourname%40gmail.com/private-code/$myical.ics --no-check-certificate -O $store_dir/$myical-$TS.isc
Change yourname to Google Account name and private-code that you can see this code from your calendar setting.


