Skip to content

Instantly share code, notes, and snippets.

@EldonMcGuinness
Created January 16, 2020 01:10
Show Gist options
  • Save EldonMcGuinness/5b564cd153e99c318b8c453182ff74aa to your computer and use it in GitHub Desktop.
Save EldonMcGuinness/5b564cd153e99c318b8c453182ff74aa to your computer and use it in GitHub Desktop.
Copy a calendar from google into radicale
GOOGLE_CAL="ics url"
LOGIN_CAL="user:pass"
DEST_CAL="url to radicale calendar"
curl "$GOOGLE_CAL" | curl -u "$LOGIN_CAL" -X PUT "$DEST_CAL" --data-binary @-
# If you're looking to share a calendar then use symlinks
#ln -sf /path/to/src /path/to/dest
#chown radicale:radicale /opt/radicale /etc/radicale -fR
#find /opt/radicale/ -type d -exec chmod 0750 "{}" \;
#find /etc/radicale/ -type d -exec chmod 0750 "{}" \;
#find /etc/radicale/ -type f -exec chmod 0600 "{}" \;
#find /opt/radicale/ -type f -exec chmod 0600 "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment