Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-31-2012, 12:36 PM   #1
leonardo84
Member
leonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with others
 
Posts: 14
Karma: 2954
Join Date: Oct 2012
Device: Kindle Touch
Smile Rsync on Kindle Touch

Hi!

Is there a way to make rsync work in my KT?

My goal is to make a script to sync my mnt/us directory to a dropbox folder, so i can sync my kindle everytime i get into a wi fi connection. I dont have great scripting skills, but i'm trying to get into it, if someone point me a way!

I already managed to get ssh working through wi-fi, but im stuck now.

Thanks in advance!
leonardo84 is offline   Reply With Quote
Old 10-31-2012, 01:36 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
[root@kindle doom]# rsync
PHP Code:
rsync  version 3.0.9  protocol version 30
Copyright 
(C1996-2011 by Andrew TridgellWayne Davison, and others.
Web site: [url]http://rsync.samba.org/[/url]
Capabilities:
    
64-bit files64-bit inums32-bit timestamps64-bit long ints,
    
no socketpairshardlinkssymlinksno IPv6batchfilesinplace,
    
appendno ACLsno xattrsiconvsymtimes

rsync comes with ABSOLUTELY NO WARRANTY
.  This is free software, and you
are welcome to redistribute it under certain conditions
.  See the GNU
General 
Public Licence for details.

rsync is a file transfer program capable of efficient remote update
via a fast differencing algorithm
.

Usagersync [OPTION]... SRC [SRC]... DEST
  
or   rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST
  
or   rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
  
or   rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
  
or   rsync [OPTION]... [USER@]HOST:SRC [DEST]
  or   
rsync [OPTION]... [USER@]HOST::SRC [DEST]
  or   
rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
The ':' usages connect via remote shell, while '::' 'rsync://' usages connect
to an rsync daemon
, and require SRC or DEST to start with a module name.

Options
 
-v, --verbose               increase verbosity
 
-q, --quiet                 suppress non-error messages
     
--no-motd               suppress daemon-mode MOTD (see manpage caveat)
 -
c, --checksum              skip based on checksumnot mod-time size
 
-a, --archive               archive modeequals -rlptgoD (no -H,-A,-X)
     --
no-OPTION             turn off an implied OPTION (e.g. --no-D)
 -
r, --recursive             recurse into directories
 
-R, --relative              use relative path names
     
--no-implied-dirs       dont send implied dirs with --relative
 
-b, --backup                make backups (see --suffix & --backup-dir)
     --
backup-dir=DIR        make backups into hierarchy based in DIR
     
--suffix=SUFFIX         set backup suffix (default ~ w/--backup-dir)
 -
u, --update                skip files that are newer on the receiver
     
--inplace               update destination files in-place (SEE MAN PAGE)
     --
append                append data onto shorter files
     
--append-verify         like --appendbut with old data in file checksum
 
-d, --dirs                  transfer directories without recursing
 
-l, --links                 copy symlinks as symlinks
 
-L, --copy-links            transform symlink into referent file/dir
     
--copy-unsafe-links     only "unsafe" symlinks are transformed
     
--safe-links            ignore symlinks that point outside the source tree
 
-k, --copy-dirlinks         transform symlink to a dir into referent dir
 
-K, --keep-dirlinks         treat symlinked dir on receiver as dir
 
-H, --hard-links            preserve hard links
 
-p, --perms                 preserve permissions
 
-E, --executability         preserve the files executability
     
--chmod=CHMOD           affect file and/or directory permissions
 
-o, --owner                 preserve owner (super-user only)
 -
g, --group                 preserve group
     
--devices               preserve device files (super-user only)
     --
specials              preserve special files
 
-D                          same as --devices --specials
 
-t, --times                 preserve modification times
 
-O, --omit-dir-times        omit directories from --times
     
--super                 receiver attempts super-user activities
 
-S, --sparse                handle sparse files efficiently
 
-n, --dry-run               perform a trial run with no changes made
 
-W, --whole-file            copy files whole (without delta-xfer algorithm)
 -
x, --one-file-system       dont cross filesystem boundaries
 
-B, --block-size=SIZE       force a fixed checksum block-size
 
-e, --rsh=COMMAND           specify the remote shell to use
     --
rsync-path=PROGRAM    specify the rsync to run on the remote machine
     
--existing              skip creating new files on receiver
     
--ignore-existing       skip updating files that already exist on receiver
     
--remove-source-files   sender removes synchronized files (non-dirs)
     --
del                   an alias for --delete-during
     
--delete                delete extraneous files from destination dirs
     
--delete-before         receiver deletes before transfernot during
     
--delete-during         receiver deletes during the transfer
     
--delete-delay          find deletions duringdelete after
     
--delete-after          receiver deletes after transfernot during
     
--delete-excluded       also delete excluded files from destination dirs
     
--ignore-errors         delete even if there are I/O errors
     
--force                 force deletion of directories even if not empty
     --
max-delete=NUM        dont delete more than NUM files
     
--max-size=SIZE         dont transfer any file larger than SIZE
     
--min-size=SIZE         dont transfer any file smaller than SIZE
     
--partial               keep partially transferred files
     
--partial-dir=DIR       put a partially transferred file into DIR
     
--delay-updates         put all updated files into place at transfers end
 
-m, --prune-empty-dirs      prune empty directory chains from the file-list
     --
numeric-ids           dont map uid/gid values by user/group name
     
--timeout=SECONDS       set I/O timeout in seconds
     
--contimeout=SECONDS    set daemon connection timeout in seconds
 
-I, --ignore-times          dont skip files that match in size and mod-time
     
--size-only             skip files that match in size
     
--modify-window=NUM     compare mod-times with reduced accuracy
 
-T, --temp-dir=DIR          create temporary files in directory DIR
 
-y, --fuzzy                 find similar file for basis if no dest file
     
--compare-dest=DIR      also compare destination files relative to DIR
     
--copy-dest=DIR         ... and include copies of unchanged files
     
--link-dest=DIR         hardlink to files in DIR when unchanged
 
-z, --compress              compress file data during the transfer
     
--compress-level=NUM    explicitly set compression level
     
--skip-compress=LIST    skip compressing files with a suffix in LIST
 -
C, --cvs-exclude           auto-ignore files the same way CVS does
 
-f, --filter=RULE           add a file-filtering RULE
 
-F                          same as --filter='dir-merge /.rsync-filter'
                             
repeated: --filter='- .rsync-filter'
     
--exclude=PATTERN       exclude files matching PATTERN
     
--exclude-from=FILE     read exclude patterns from FILE
     
--include=PATTERN       dont exclude files matching PATTERN
     
--include-from=FILE     read include patterns from FILE
     
--files-from=FILE       read list of source-file names from FILE
 
-0, --from0                 all *-from/filter files are delimited by 0s
 
-s, --protect-args          no space-splittingonly wildcard special-chars
     
--address=ADDRESS       bind address for outgoing socket to daemon
     
--port=PORT             specify double-colon alternate port number
     
--sockopts=OPTIONS      specify custom TCP options
     
--blocking-io           use blocking I/for the remote shell
     
--stats                 give some file-transfer stats
 
-8, --8-bit-output          leave high-bit chars unescaped in output
 
-h, --human-readable        output numbers in a human-readable format
     
--progress              show progress during transfer
 
-P                          same as --partial --progress
 
-i, --itemize-changes       output a change-summary for all updates
     
--out-format=FORMAT     output updates using the specified FORMAT
     
--log-file=FILE         log what were doing to the specified FILE
     
--log-file-format=FMT   log updates using the specified FMT
     
--password-file=FILE    read daemon-access password from FILE
     
--list-only             list the files instead of copying them
     
--bwlimit=KBPS          limit I/O bandwidthKBytes per second
     
--write-batch=FILE      write a batched update to FILE
     
--only-write-batch=FILE like --write-batch but w/o updating destination
     
--read-batch=FILE       read a batched update from FILE
     
--protocol=NUM          force an older protocol version to be used
     
--iconv=CONVERT_SPEC    request charset conversion of filenames
 
-4, --ipv4                  prefer IPv4
 
-6, --ipv6                  prefer IPv6
     
--version               print version number
(-h) --help                  show this help (-h is --help only if used alone)

Use 
"rsync --daemon --help" to see the daemon-mode command-line options.
Please see the rsync(1) and rsyncd.conf(5man pages for full documentation.
See [url]http://rsync.samba.org/[/url] for updates, bug reports, and answers
rsync errorsyntax or usage error (code 1at main.c(1420) [client=3.0.9


http://linux.die.net/man/1/rsync

about two pages down should do you.

you have the app right?

Last edited by twobob; 10-31-2012 at 03:01 PM.
twobob is offline   Reply With Quote
Advert
Old 10-31-2012, 02:16 PM   #3
leonardo84
Member
leonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with others
 
Posts: 14
Karma: 2954
Join Date: Oct 2012
Device: Kindle Touch
well here is what i did

i download the last release at http://rsync.samba.org/ftp/rsync/

copied to kindle

unziped uzing tar

went inside directory and ./configure

error

configure.sh: error: in `/bin/rsync-3.0.9':
configure.sh: error: no acceptable C compiler found in $PATH
leonardo84 is offline   Reply With Quote
Old 10-31-2012, 02:34 PM   #4
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
If launching from the host machine, the script below may need tweaking for use over wifi, instead of using the /media drive on the host linux machine.

https://www.mobileread.com/forums/sho...ighlight=rsync
qlob is offline   Reply With Quote
Old 10-31-2012, 02:49 PM   #5
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,495
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: It's bundled in USBNet .
NiLuJe is offline   Reply With Quote
Advert
Old 10-31-2012, 03:00 PM   #6
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by NiLuJe View Post
@twobob: It's bundled in USBNet .
then happy days, I should keep a "stock" image around to check in I suppose

Always worried about presumption
twobob is offline   Reply With Quote
Old 10-31-2012, 03:10 PM   #7
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,495
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: Actually, it might very well be part of the base system on the K5, too. Can't remember if that was rsync or lsof...
NiLuJe is offline   Reply With Quote
Old 10-31-2012, 03:17 PM   #8
leonardo84
Member
leonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with others
 
Posts: 14
Karma: 2954
Join Date: Oct 2012
Device: Kindle Touch
seems like rsync isnt installed as i cant run it from terminal. I got the error "command not found"

then i downloaded binaries from

http://rsync.samba.org/ftp/rsync/

unzipped and tried to install

this is the errors i get

/bin/rsync-3.0.9$ ./prepare-source
./prepare-source: line 49: make: not found
/bin/rsync-3.0.9$ make


/bin/rsync-3.0.9$ ./configure
configure.sh: Configuring rsync 3.0.9
checking build system type... armv7l-unknown-linux-gnu
checking host system type... armv7l-unknown-linux-gnu
checking whether to include debugging symbols... yes
checking for gcc... no
configure.sh: error: in `/bin/rsync-3.0.9':
configure.sh: error: no acceptable C compiler found in $PATH
See `config.log' for more details
checking for cc... no
checking for cl.exe... no

Last edited by leonardo84; 10-31-2012 at 03:25 PM. Reason: aditional info
leonardo84 is offline   Reply With Quote
Old 10-31-2012, 03:52 PM   #9
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
worked example:

me@dev ~ $ rsync -uLrvkn --ipv4 --progress --include="*" ~/GIT/buildroot-k3-current/output/target/usr/ root@k:/mnt/us/usr

or on the kindle

[root@kindle root]# rsync -urvn --ipv4 --progress --include="*" me@dev:~/GIT/buildroot-k3-current/output/target/usr/ /mnt/us/usr

for example.

(remove n for actually doing something)

or...

rsync -vzLS --ipv4 --progress /multistrap-debian-sid/rsync/debian.ext3 root@kt:/mnt/us/debian.ext3


or
Code:
rsync -vzL --inplace --ipv4 --progress /multistrap-debian-sid/rsync/debian.ext3 root@kt:/mnt/us/debian.ext3
could also be a way to do it.

Last edited by twobob; 11-15-2012 at 01:16 PM.
twobob is offline   Reply With Quote
Old 10-31-2012, 04:02 PM   #10
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by leonardo84 View Post
seems like rsync isnt installed as i cant run it from terminal. I got the error "command not found"

then i downloaded binaries from

http://rsync.samba.org/ftp/rsync/

unzipped and tried to install

this is the errors i get

/bin/rsync-3.0.9$ ./prepare-source
./prepare-source: line 49: make: not found
/bin/rsync-3.0.9$ make


/bin/rsync-3.0.9$ ./configure
configure.sh: Configuring rsync 3.0.9
checking build system type... armv7l-unknown-linux-gnu
checking host system type... armv7l-unknown-linux-gnu
checking whether to include debugging symbols... yes
checking for gcc... no
configure.sh: error: in `/bin/rsync-3.0.9':
configure.sh: error: no acceptable C compiler found in $PATH
See `config.log' for more details
checking for cc... no
checking for cl.exe... no

My first thought: It's not in your path. for some reason.

/usr/bin/rsync on the 3

I have bundled a version for the 5.
you cant just "make" on the device just yet OOTB. working on it.

EDIT: I configure my device like: http://minimodding.com/article9-Kind...ng-custom-apps for running custom apps
Attached Files
File Type: gz rsync-for-the-5.tar.gz (155.9 KB, 320 views)
twobob is offline   Reply With Quote
Old 10-31-2012, 04:43 PM   #11
leonardo84
Member
leonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with othersleonardo84 plays well with others
 
Posts: 14
Karma: 2954
Join Date: Oct 2012
Device: Kindle Touch
Quote:
Originally Posted by twobob View Post
My first thought: It's not in your path. for some reason.

/usr/bin/rsync on the 3

I have bundled a version for the 5.
you cant just "make" on the device just yet OOTB. working on it.

EDIT: I configure my device like: http://minimodding.com/article9-Kind...ng-custom-apps for running custom apps
its working now, thank you!
leonardo84 is offline   Reply With Quote
Old 10-31-2012, 05:31 PM   #12
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by leonardo84 View Post
its working now, thank you!
; ) no worries. Happy Halloween
twobob is offline   Reply With Quote
Reply

Tags
k5 tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to easily backup all your notes, marks & reading positions with rsync under Linux Dylan Tomorrow Amazon Kindle 5 10-26-2012 03:18 PM
Rsync failure, Database repair, missing books laird Library Management 3 08-24-2012 04:47 AM
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch jbcohen Which one should I buy? 4 06-18-2011 07:58 PM
Request Geek Tools for moving files to/from the Library: ssh/sftp/rsync/samba kenjennings enTourage Archive 6 04-06-2010 11:36 PM
rsync thetechnobear iRex 1 03-05-2008 01:57 PM


All times are GMT -4. The time now is 08:52 AM.


MobileRead.com is a privately owned, operated and funded community.