View Single Post
Old 02-20-2023, 10:13 PM   #14
jmacindoe
Junior Member
jmacindoe began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2023
Device: Kobo Libra H2O, Kobo Clara 2E
Thanks for the guide @qkqw! A couple of small things I'd add

1. On my Clara 2E the network device is mlan0 so I needed this rule
Code:
KERNEL=="mlan*", ACTION=="add", RUN+="..."
2. For some reason the command didn't run unless I wrapped it with /bin/sh and made it run async
Code:
KERNEL=="eth*", ACTION=="add", RUN+="/bin/sh -c '/bin/pull &'"
3. I use "rclone copy --ignore-existing" which will ignore both checksum and modification time, only checking if the file exists. Since I'm mostly syncing ebooks that are never modified, there's no need for any modification checks at all, and as you say the modification time is super buggy. But this won't work if you want to bisync .sdr's of course, since they change.

4. I like to output the log to the screen so I can check it worked. So
Code:
rclone copy --args-etc 2>&1 | /usr/local/kfmon/bin/fbink
Logging the errors 2>&1 was really useful for debugging.

5. For some reason rclone used a different config file location when running from SSH and koreader vs when running from udev. Can be fixed by specifying with the --config flag.
jmacindoe is offline   Reply With Quote