To resurrect a dead thread...

I recently bundled rsync into my save and "plan" steps, and keep it  
all on a separate machine.  Note this requires the ssh keys to be set  
up properly on the host machine so that you don't need to enter the  
password.

(defvar planner-syncloc "mymachine.ca:/Users/jklymak/.planstor/");
(defun planner-sync-put () (interactive) (shell-command-to-string  
(concat "rsync -av " planner-directory " " planner-syncloc)))
(defun planner-sync-get () (interactive) (shell-command-to-string  
(concat "rsync -av " planner-syncloc "/Plans/ " planner-directory  
"/" )))
Then I rebind the save keystrokes in planner mode to:

(defun jmk-planner-save-buffers ()
    "Update a note if we are on a note. Run planner-save-buffers."
    (interactive)
    (save-excursion (save-window-excursion (planner-update-note)  
(planner-save-buffers)
    (planner-sync-put))))

(define-key planner-mode-map [?\C-x ?\C-s] 'jmk-planner-save-buffers)

and have a function that I call instead of "plan"
(defun jmkplan ()
   (interactive)
(planner-sync-get) (icalendar-convert-all) (plan))

So far things seem to be working quite well.  If there is a conflict,  
however, things will not merge nicely.  I probably should make rsync  
backup as well to avoid losing data.

http://saturna.seos.uvic.ca/~jklymak/OsxPlanner.html

Cheers,  Jody

--
Jody Klymak
http://web.uvic.ca/~jklymak/






_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to