Repository navigation
How can I use elfeed on multiple devices? #665
|
I will soon have a desktop in addition to my laptop, and I would like to use elfeed from both (while keeping them synchronized). What is the best way to achieve this? I found https://github.com/MasWag/emacs-elfeed-sync, which simply copies the index file using tramp. Is it all that is needed? |
Replies: 1 comment 1 reply
|
Mostly, yes, with one gap. Elfeed has no sync of its own: the whole state (feeds, entries, tags, read/unread) is the single The gap is content. The index only holds references; entry bodies live in If you would rather not think about ordering at all, put a server in the middle: elfeed-protocol (listed under Extensions in the README) fetches from FreshRSS, ttrss, Fever-style backends and the like, and the read state then lives on the server instead of in either index. |
Mostly, yes, with one gap. Elfeed has no sync of its own: the whole state (feeds, entries, tags, read/unread) is the single
indexfile underelfeed-db-directory, written as one s-expression byelfeed-db-saveinelfeed-db.el. There is no merge; whichever index is copied last wins, which skeeto confirmed back in #131. So copying works as long as you push before leaving one machine and pull before starting on the other. emacs-elfeed-sync does handle the two things that usually trip people up: it callselfeed-db-savebefore pushing (otherwise the db is only written on an idle timer,elfeed-db-save-idle, and fromkill-emacs-hook) and wraps the pull inelfeed-db-unload/elfeed-db-loadso the c…