Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # --------------- [ Server ] ---------------- #
- CAL_URL=" "
- USERNAME=" "
- PASSWORD=" "
- # ----------------- [ Phone ] ----------------- #
- CONFIG_NAME=" "
- CALENDAR_NAME=" "
- CALENDAR_VISUAL_NAME=" "
- #Create Calendar
- syncevolution --create-database backend=evolution-calendar database=$CALENDAR_VISUAL_NAME
- #Create Peer
- syncevolution --configure --template webdav username=$USERNAME password=$PASSWORD syncURL=$CAL_URL keyring=no target-config@$CONFIG_NAME
- #Create New Source
- syncevolution --configure backend=evolution-calendar database=$CALENDAR_VISUAL_NAME @default $CALENDAR_NAME
- #Add remote database
- syncevolution --configure database=$CAL_URL backend=caldav target-config@$CONFIG_NAME $CALENDAR_NAME
- #Connect remote calendars with local databases
- syncevolution --configure --template SyncEvolution_Client syncURL=local://@$CONFIG_NAME $CONFIG_NAME $CALENDAR_NAME
- #Add local database to the source
- syncevolution --configure sync=two-way database=$CALENDAR_VISUAL_NAME $CONFIG_NAME $CALENDAR_NAME
- #Start first sync
- syncevolution --sync refresh-from-remote $CONFIG_NAME $CALENDAR_NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement