Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Any way to run this like rsync? #81

Open
ElPiloto opened this issue Oct 18, 2021 · 4 comments
Open

Question: Any way to run this like rsync? #81

ElPiloto opened this issue Oct 18, 2021 · 4 comments

Comments

@ElPiloto
Copy link

ElPiloto commented Oct 18, 2021

I'd like to have a mirrored directory on my server and remarkable where changes on either end get reflected on the other side. Right now, it seems you have to manually download files using the web UI to go from rm device --> computer. And that you need to manually drag and drop files on the web UI to send files from the computer --> device. Sorry if this is out of the scope of the current project, but it seems like a lot of the necessary functionality for an rsync is already there. Furthermore, some of the exporting functionality I've seen using rmfakecloud is much better than comparable tools in terms of export quality. So I'm really hoping I can find a solution with rmfakecloud.

@ddvk
Copy link
Owner

ddvk commented Oct 19, 2021

you can use rmapi for cli

the ui for is just a sandbox/playground for now.

some auto export/import could be added

@ElPiloto
Copy link
Author

ElPiloto commented Oct 20, 2021

Thanks for the response. I had one follow-up question. Using rmapi to sync from computer to rm2 seems doable from the cli. However, it is unclear to me how I would use rmapi to accomplish syncing from the rm2 to my computer?

It seems like rmfakecloud receives events when files are added or modified on the remarkable devices. As far as I can tell, rmapi does not expose any sort of event listeners in the cli. This means I have no way of knowing when a file has been added (or modified) on the remarkable to sync it to the computer. Am I missing something?

@ddvk
Copy link
Owner

ddvk commented Oct 20, 2021

you can run rmapi mget -i every minute with taskscheduler/cron.
what is your goal, to have rendered notbooks on your pc or just a backup of everything?

@ElPiloto
Copy link
Author

ElPiloto commented Oct 20, 2021

Thanks, I was not aware of the -i flag for incremental downloading. I may send a PR to rmapi to add that information to the README.

My goals are threefold (without relying on a third party cloud):

  1. automatically sync PDFs from my research reference manager (zotero) on my PC to my remarkable with mirrored directory structure (zotero_on_PC/My Library/MultiheadedAttention/some.pdf goes on the rm2 tablet as My Files/MultiheadedAttention/some.pdf)
  2. full backup of my remarkable (for data redundancy purposes)
  3. desktop access to rendered notebooks and annotated PDFs for viewing in other places (and maybe custom post-processing with some openCV/tf2 scripts)

I know that's a lot of different functionality, but it reflects my ideal use case for this tablet. Given utilities like rmfakecloud/rmapi, I think this set of features is actually possible to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants