Command-line utility which exports all of a user's Google Calendars to iCal/ICS format for backup
2.5K
⚠️ This project is no longer maintained. For automated backup of Google calendars, I would recommend vdirsyncer. For one-time backups, Google Takeout works fine.
Gcalvault is a command-line utility which exports all of a user's Google Calendars to iCal/ICS format for backup (or portability).
Features:
Some example commands...
Sync all calendars for [email protected] user:
gcalvault sync [email protected]
Sync one specific calendar:
gcalvault sync [email protected] [email protected]
Sync only "writable" calendars:
gcalvault sync [email protected] --ignore-role reader
Simply export calendars, do not save version history:
gcalvault sync [email protected] --export-only
See the CLI help for full usage and other notes.
docker run -it --rm \
-v ${HOME}/.gcalvault:/root/.gcalvault \
-v ${PWD}:/root/gcalvault \
rtomac/gcalvault sync [email protected]
pip install gcalvault
gcalvault sync [email protected]
The CLI initiates an OAuth2 authentication the first time it is run (interactive), and then uses refresh tokens for subsequent runs (headless).
When you use Gcalvault in its default configuration, you are authenticating with Google using Gcalvault's client ID. There is nothing inherently insecure about this, since the application is running locally and therefore only you will have access to the data it reads from Google.
That said, it's strongly recommended to create your own client ID through the Google API Console, since the shared client ID will be used by others and subject to limits which may cause unpredictable failures.
rclone has a good write-up on making your own client ID.
You can provide your client ID and secret to gcalvault as follows:
gcalvault sync [email protected] --client-id my_client_id --client-secret my_client_secret
Source repository:
http://github.com/rtomac/gcalvault
make devenv
. ./.devenv/bin/activate
make build
make test
make run [email protected]
make release
See targets and variables in Makefile for more options.
MIT License
Content type
Image
Digest
sha256:7ae1fbebb…
Size
78.1 MB
Last updated
about 2 months ago
docker pull rtomac/gcalvault