Offline Google Calendar archive tool. Export and store calendar event data locally with full SQL queryability.
Inspired by msgvault; read the blog post.
just build
just install # installs to ~/.local/bin- Create OAuth credentials at Google Cloud Console
- Download
client_secret.json - Configure calvault:
mkdir -p ~/.calvault
cat > ~/.calvault/config.toml << EOF
[oauth]
client_secrets = "/path/to/client_secret.json"
EOF# Add a Google account
calvault add-account [email protected]
# Sync all calendars
calvault sync [email protected]
# Incremental sync (faster, only changes)
calvault sync [email protected] --incremental
# View statistics
calvault stats
# Query with SQL
calvault query "SELECT summary, start_time FROM events ORDER BY start_time DESC LIMIT 10"See examples/ for sample queries:
calvault query -f examples/dermatologist_visits.sql
calvault query -f examples/busiest_days.sql
calvault query -f examples/meetings_by_organizer.sqlMIT