Discussion:
mobile-org-pull not seeing updates
Ian van der Neut via mobileorg-android
2013-03-19 19:09:46 UTC
Permalink
Hello,

I have the following in my configuration:

(require 'org-mobile)
(setq org-directory "~/.notes")
(setq org-mobile-directory "/scpc:some-shell-host:/home/ian/notes/")
(setq org-mobile-inbox-for-pull "~/.notes/index.org")
(setq org-mobile-files (list "~/.notes/index.org" "~/.notes/bugs.org"
"~/.notes/journal.org" "~/.notes/someday.org"
"~/.notes/tasks.org"))

I push notes from box at work (emacs 23.something, org mode no idea). Anyway, this works fine and my android app sees the updates like I expect.

I have the same code in my configuration at home (emacs 24.2.1 (fedora 18), org version 7.8.11).

So, now at home I want to M-x org-mobile-pull and it says "No new items". But if I org-mobile-push, it will push the obsolete notes in ~/.notes to the staging directory (I made a backup before I did this and restored order).

What am I doing wrong?

Thank you in advance,

Ian.
mobileorg-android on behalf of Matthew Jones
2013-03-19 19:38:27 UTC
Permalink
Unfortunately org-mode and org-mobile-* functions don't really work well in
this particular scenario. Note that when you perform an org-mobile-push
you are pushing up all of your files exactly as they are... but
org-mobile-pull only grabs a deltas file (mobileorg.org in the typical
case) which are any changes that mobileorg has made... it does not actually
pull all of the files (nor might you really want it to)

So you need some other mechanism to keep your home and work configurations
in sync.


On Tue, Mar 19, 2013 at 3:09 PM, Ian van der Neut via mobileorg-android <
Post by Ian van der Neut via mobileorg-android
Hello,
(require 'org-mobile)
(setq org-directory "~/.notes")
(setq org-mobile-directory "/scpc:some-shell-host:/home/ian/notes/")
(setq org-mobile-inbox-for-pull "~/.notes/index.org")
(setq org-mobile-files (list "~/.notes/index.org" "~/.notes/bugs.org"
"~/.notes/journal.org" "~/.notes/someday.org
"
"~/.notes/tasks.org"))
I push notes from box at work (emacs 23.something, org mode no idea).
Anyway, this works fine and my android app sees the updates like I expect.
I have the same code in my configuration at home (emacs 24.2.1 (fedora
18), org version 7.8.11).
So, now at home I want to M-x org-mobile-pull and it says "No new items".
But if I org-mobile-push, it will push the obsolete notes in ~/.notes to
the staging directory (I made a backup before I did this and restored
order).
What am I doing wrong?
Thank you in advance,
Ian.
--
You received this message because you are subscribed to the Google Groups
"mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en
.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobileorg-android+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Ian van der Neut via mobileorg-android
2013-03-19 19:43:40 UTC
Permalink
Unfortunately org-mode and org-mobile-* functions don't really work well in this particular scenario.   Note that when you perform an org-mobile-push you are pushing up all of your files exactly as they are... but org-mobile-pull only grabs a deltas file (mobileorg.org in the typical case) which are any changes that mobileorg has made... it does not actually pull all of the files (nor might you really want it to)
So basically I just should:

rsync -a -e ssh some-shell-host:/home/ian/notes/ /home/ian/.notes

Before I do anything else with pushing or pulling on either work station?

That's no biggie... thanks.

Ian.
So you need some other mechanism to keep your home and work configurations in sync.
Hello,
(require 'org-mobile)
(setq org-directory "~/.notes")
(setq org-mobile-directory "/scpc:some-shell-host:/home/ian/notes/")
(setq org-mobile-inbox-for-pull "~/.notes/index.org")
(setq org-mobile-files (list "~/.notes/index.org" "~/.notes/bugs.org"
                             "~/.notes/journal.org"  "~/.notes/someday.org"
                             "~/.notes/tasks.org"))
I push notes from box at work (emacs 23.something, org mode no idea). Anyway, this works fine and my android app sees the updates like I expect.
I have the same code in my configuration at home (emacs 24.2.1 (fedora 18), org version 7.8.11).
So, now at home I want to M-x org-mobile-pull and it says "No new items". But if I org-mobile-push, it will push the obsolete notes in ~/.notes to the staging directory (I made a backup before I did this and restored order).
What am I doing wrong?
Thank you in advance,
Ian.
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobileorg-android+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...