![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Apr 2008
Device: iliad
|
simple syncing on Linux
Hi!
The attached script simply copies one folder (and its subfolders) to another place (probably your iliad). It doesn't overwrite already existing files. Then it also downloads the contents of the outbox folder, without overwriting anything. How to use it?
Todo The script has one major drawback, that it is not run automatically. I've tried to run it from udev, but seemingly at that time it is not yet mounted, only the block device is created. If someone would find out how to delay the running of the script, or which other service should be used. Please, share your info with me as well! Anyway, the udev rule is (put in under /etc/udev/rules.d/10-local.rule): Code:
SUBSYSTEM=="block", SUBSYSTEMS=="usb", ATTRS{product}=="ER0100 eReader ", ATTRS{manufacturer}=="iRex TechnologiesBV ", RUN+="/home/nagyv/bin/iliadSync.sh & disown" |
![]() |
![]() |
![]() |
#2 |
Addicted to Porting
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Would it not be easier to setup rsync and cron (included in busybox)? I'm just curious, as I've never messed with udev.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 10
Karma: 10
Join Date: Apr 2008
Device: iliad
|
I was thinking about it, but I don't know how rsync treats the file<->directory conversions. + I didn't wanted to install anything on my iLiad, so the desktop has to mount it to run the software (moreover, for the moment I can't connect via wifi, just with USB)
otherwise I prefer the "run on mounting" approach, and the reason I made this script is that I thought it would work anyway, as I am just a 2 day old, non-programmer iLiad owner, I am kind of satisfied ![]() |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() Posts: 73
Karma: 16
Join Date: Jul 2006
Location: Zurich, Switzerland
|
I just installed Samba on my Linux box and now use the iLiad-integrated method for exchanging documents over WiFi with my Linux box.
So my "workflow" looks like this:
I also created a small script, which is running on my Linux-box to automatically merge the scribbles I did on my PDF and produce annotated PDFs (thanks to iLiadScribbleMerger) The script for doing this "scribble merging" is attached. This file is just added to the cron-job to execute every 1 minute... Code:
>crontab -l */1 * * * * /home/michi/iLiadConvert/convertScribble.rb > /home/michi/iLiadConvert/output.log 2>&1 |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
syncing metadata | Daephex | Calibre | 6 | 11-20-2010 02:29 PM |
Syncing? | enn | Calibre | 4 | 09-30-2010 11:45 PM |
erm, simple question , hope for simple answer! | al zymers | Amazon Kindle | 5 | 09-25-2010 01:01 PM |
Simple question for a simple mind :) | PKFFW | OpenInkpot | 6 | 08-27-2009 09:00 PM |
A Syncing Question | sUnShInE | Which one should I buy? | 10 | 03-12-2009 11:33 AM |