|
|
Thread Tools | Search this Thread |
10-24-2012, 03:25 PM | #1 |
Connoisseur
Posts: 62
Karma: 640495
Join Date: Jul 2012
Location: Germany
Device: Kindle Touch, Android smartphone w/ FBReader
|
How to easily backup all your notes, marks & reading positions with rsync under Linux
Hi guys,
I have lost the notes, marks and reading positions of my personal docs not synced to the Amazon cloud in the past (e.g. calibre deletes them when you use it to delete ebooks from the device) and wanted to easily back them up locally, especially as those are tiny, tiny files. Because I already have the whole ebook library in calibre plus a backup I did not want to create another full backup with all the ebook files in it, just those ancillary files. Enter rsync, one of my favourite Linux command line tools! I just had to google and read the Manpage a bit and survey the file endings used for the different note formats, and voilá: Code:
rsync -ahvh --progress --prune-empty-dirs --include-from="rsync-include.txt" --exclude='*' /media/Kindle/documents/ ~/Backups/Kindle/2012-10-24/documents/ Code:
*/ *.mbp *.mbp1 *.mbs *.azw3r *.azw3f *.pds *.pdt *.tal *.tas *.apnx *.phl *.asc *.ea *.apnx are page numbers, *.phl are public highlights and *.asc are end action (*.ea on the Kindle 3) and X-Ray files, all of which you can refetch from Amazon for their books (so feel free to remove those), but all the other endings are the four times two note and reading position formats for MOBIs, AZW3s (KF8), PDFs and AZW1s (Topaz) respectively. Includes findings from qlob. Last edited by Dylan Tomorrow; 11-12-2012 at 12:30 PM. Reason: EDIT1 27th Oct 2012:Added findings from qlob, Thanks!; EDIT2: Added *.mbp |
10-24-2012, 10:31 PM | #2 |
Official Lurker
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
Thanks so much for this! I will definitely use this! The only thing I use is linux, and sooner or later i was going to wite a script to launch rdiffbackup everytime I plug in my Kindle...
|
Advert | |
|
10-25-2012, 07:34 AM | #3 |
Connoisseur
Posts: 73
Karma: 2634
Join Date: Sep 2010
Device: none
|
Thanks a lot.
|
10-26-2012, 01:35 PM | #4 |
Connoisseur
Posts: 62
Karma: 640495
Join Date: Jul 2012
Location: Germany
Device: Kindle Touch, Android smartphone w/ FBReader
|
You are welcome! I was wondering if this would reach anyone at all ...
One caveat: I got the file endings from looking at all the files on my Kindle Touch, if you have another model of the Kindle it may use some different file endings (I've read somewhere that the endings changed with the Touch), so you may have to add them to the rsync-include.txt. I collected them via (assuming the folder naming did not also change ): Code:
cd /media/Kindle/documents/ ls *.sdr ls */*.sdr |
10-26-2012, 04:16 PM | #5 |
Official Lurker
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
FYI, on Fedora 16 and above, /media/kindle needs to be changed to /run/media/<user>/Kindle
|
Advert | |
|
10-26-2012, 04:18 PM | #6 |
Official Lurker
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
Also .ea is another file extension i see here on my K3.
|
Tags |
backup, k5 tools, kindle tools, kindle touch, marks, notes, rsync |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting How do I backup my reading positions? | vaderag | Amazon Kindle | 9 | 01-24-2013 08:28 PM |
Troubleshooting Stuck In Notes & Marks | Nyssa | Amazon Kindle | 12 | 11-15-2011 02:56 PM |
deleting all my marks & highlights & notes | TenaciousBadger | Amazon Kindle | 6 | 01-27-2011 01:43 PM |
tips for research reading- notes/search/marks | 1611mac | General Discussions | 6 | 07-13-2010 01:14 PM |
Backup notes & restore | thibaulthalpern | Sony Reader | 10 | 04-01-2009 11:31 PM |