Skip to main content
100%

Gist d26e178be3840d0d68cead166eb45a18

✓ Published0🌍 Public
UUtopiah
Last edited Dec 6, 2021
Created on Dec 6, 2021

This example shows a shell script that synchronizes PDF and EPUB files from a Nextcloud instance to a reMarkable tablet, automatically adding the necessary metadata and content files so the documents appear in the tablet’s library. The script uses `rsync` to transfer files, `mount.davfs` to access the Nextcloud WebDAV endpoint, and custom helper functions to generate `.metadata` and `.content` JSON files for each new document. It also tracks newly added files in `/tmp/newfilesaddedduringsync` and optionally restarts the `xochitl` service if a configuration file requests it.

AI-generated description

Similar vizzes