Advertisement
Guest User

Untitled

a guest
Jun 15th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. #!/bin/bash
  2. # --------------- [ Server ] ---------------- #
  3. CAL_URL=" "
  4. USERNAME=" "
  5. PASSWORD=" "
  6.  
  7. # ----------------- [ Phone ] ----------------- #
  8. CONFIG_NAME=" "
  9. CALENDAR_NAME=" "
  10. CALENDAR_VISUAL_NAME=" "
  11.  
  12. #Create Calendar
  13. syncevolution --create-database backend=evolution-calendar database=$CALENDAR_VISUAL_NAME
  14. #Create Peer
  15. syncevolution --configure --template webdav username=$USERNAME password=$PASSWORD syncURL=$CAL_URL keyring=no target-config@$CONFIG_NAME
  16. #Create New Source
  17. syncevolution --configure backend=evolution-calendar database=$CALENDAR_VISUAL_NAME @default $CALENDAR_NAME
  18. #Add remote database
  19. syncevolution --configure database=$CAL_URL backend=caldav target-config@$CONFIG_NAME $CALENDAR_NAME
  20. #Connect remote calendars with local databases
  21. syncevolution --configure --template SyncEvolution_Client syncURL=local://@$CONFIG_NAME $CONFIG_NAME $CALENDAR_NAME
  22. #Add local database to the source
  23. syncevolution --configure sync=two-way database=$CALENDAR_VISUAL_NAME $CONFIG_NAME $CALENDAR_NAME
  24. #Start first sync
  25. syncevolution --sync refresh-from-remote $CONFIG_NAME $CALENDAR_NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement