This is a simple tool that helps you restore your calendar items from an iOS calendar database.
This is a Python-based command-line tool. The following prerequisites are required:
- Python (3.7 or higher recommended)
To run:
- Get your
calendar.sqlitedbdatabase file.
If you don't have thecalendar.sqlitedbfile but only the backup of your iOS device, you will need to extract the calendar from your backup using a tool like iTunes Backup Explorer. - Download
sqlitedb-to-ics.pyand place it in the folder where yourcalendar.sqlitedbis. - Open a command line or terminal window in the folder with your calendar database and the downloaded python file.
- For Windows, press
Win+Rand type "cmd" in the Run box and press enter. - For Linux, press
Ctrl+Alt+T.
- For Windows, press
- Type
python sqlitedb-to-ics.pyand hit enter. - You will be prompted with all the calendars in the database that contain calendar items. Enter the number of the calendar you wish to export and press enter.
If you enter0, you can export all your calendars at once into one file or separate files. - Your calendar items will be exported and saved as
<name_of_selected_calendar>.icsin the same folder as the database and python file.
This tool currently extracts the following fields from calendar items:
- Summary (event title)
- Description
- Start date/time
- End date/time
- URL
- Creation date
- All-Day event flag