Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2020, 08:47 PM   #31
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,188
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by droopy View Post
GBM, I'm on Cinnamint 20 as well.
How do you get Nemo to calculate an entire folder's worth of subfolders and filter by file type, as it appears you've done?


I'm guessing there's somethingc more than just the ebook files (cbz/epub/htm/kfx) and the images. Maybe the "supporting structure" (let's call it the scaffolding) of Calibre is taking up a humongous amount of space.
Use nemo open the calibre library folder--select all--right click--properties; will give you the total number of items in the library and the total size of the library.

With the calibre library folder open use search for *.epub, etc, etc, will find all the epubs in the calibre library folder then use select all--right click--properties;will give you the total count of epub, etc, etc, plus the total size. Repeat until all ebook types have been checked.

bernie
gbm is offline   Reply With Quote
Old 08-05-2020, 05:22 AM   #32
latepaul
Wizard
latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.
 
latepaul's Avatar
 
Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
Quote:
Originally Posted by droopy View Post
Is there a command I can run on a folder (and all its subfolders) to tell me all the file types (file extensions) contained therein? Maybe we're missing some file types from our analysis.
Update: I changed your "100M" to "1M" and got this:

That's too verbose for me! Lol. so much lines about "jpeg image data".
Mostly jpg's, PDFs, Zips and the calibre sqlite database.

To be honest it's a bit of a mystery looking at what you've run. How big is metadata.db?
latepaul is offline   Reply With Quote
Old 08-05-2020, 07:44 PM   #33
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by latepaul View Post
Mostly jpg's, PDFs, Zips and the calibre sqlite database.

To be honest it's a bit of a mystery looking at what you've run. How big is metadata.db?
In post #25 https://www.mobileread.com/forums/sh...3&postcount=25
I wrote
Quote:
$ find . -iregex ".*\.\(db\|json\|opf\)$" -exec du -csh '{}' + | tail -1
6.9M total
Does that answer your question, or am I missing something?

I hope I can figure out what mysterious stuff are taking up a mammoth amount of space in my calibrelibrary.
droopy is offline   Reply With Quote
Old 08-05-2020, 08:01 PM   #34
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,897
Karma: 31522252
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
You can look at your files, sorted largest to smallest, like this:

Code:
find . -type f -ls | cut -c48- | sort -rn | sed -e 's/\\//g' | pg
I am sending the output to "pg", so it pauses after ever screen of data. Hit 'return' for the next screen, "ctrl-c" to quit.

The output from the above command is not pretty, but it is functional. Make sure to enlarge your terminal window to full screen, otherwise the lines may wrap making it a nightmare to tell what is what.
haertig is offline   Reply With Quote
Old 08-05-2020, 08:09 PM   #35
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
find . -type f -ls | cut -c48- | sort -rn | sed -e 's/\\//g' | pg
bash: pg: command not found

Is there a way to do this while ignoring the file extensions I've checked already (epub, cbz, mobi, pdf, db, etc)?
droopy is offline   Reply With Quote
Old 08-05-2020, 09:32 PM   #36
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,897
Karma: 31522252
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
Quote:
Originally Posted by droopy View Post
find . -type f -ls | cut -c48- | sort -rn | sed -e 's/\\//g' | pg
bash: pg: command not found

Is there a way to do this while ignoring the file extensions I've checked already (epub, cbz, mobi, pdf, db, etc)?
Code:
find . -type f -ls | egrep -v '\.(epub|cbz|mobi|pdf|db)' | cut -c48- | sort -rn | sed -e 's/\\//g' | more
Notice now I am using the "more" command rather than the "pg" command. They basically do the same thing. Note that with "more" you use the spacebar to advance a page, rather than enter key like you do with "pg". On Linux distros, you will usually find either the pg command or the more command installed, usually both. In your case, you don't have pg. So use more instead.

Nore: The -v option to the egrep command means "everything except". So the above command will list everything except epub's, cbz's, mobi's, pdf's and db's

Last edited by haertig; 08-05-2020 at 09:36 PM.
haertig is offline   Reply With Quote
Old 08-05-2020, 10:21 PM   #37
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by haertig View Post
Code:
find . -type f -ls | egrep -v '\.(epub|cbz|mobi|pdf|db)' | cut -c48- | sort -rn | sed -e 's/\\//g' | more
Notice now I am using the "more" command rather than the "pg" command. They basically do the same thing. Note that with "more" you use the spacebar to advance a page, rather than enter key like you do with "pg". On Linux distros, you will usually find either the pg command or the more command installed, usually both. In your case, you don't have pg. So use more instead.

Nore: The -v option to the egrep command means "everything except". So the above command will list everything except epub's, cbz's, mobi's, pdf's and db's
Is there a way to print the output into some file? It may be easier to view/search/share if it's in some output file.
Update: I'm not with my Calibre computer right now, and plan to try this tomorrow.
droopy is offline   Reply With Quote
Old 08-05-2020, 10:35 PM   #38
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,897
Karma: 31522252
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
Quote:
Originally Posted by droopy View Post
Is there a way to print the output into some file? It may be easier to view/search/share if it's in some output file.
Code:
find . -type f -ls | egrep -v '\.(epub|cbz|mobi|pdf|db)' | cut -c48- | sort -rn | sed -e 's/\\//g' > filename.txt
Commands like the above are just a bunch of simple, basic Linux commands strung together using "pipes". e.g., the output of one goes to the input of the next. The command above used to end with "| more", the output of the command before was "piped to the input of the more command". I replaced that with "> filename.txt". This takes the output of the previous command and "redirects it into a file".

You might want to do a Google search for "Linux command line free ebook". There are many available. Lot's on Kindle Unlimited too, sometimes you will find them for free purchase there as well. Using pipes and redirects are basic to understanding the command line.
haertig is offline   Reply With Quote
Old 08-06-2020, 01:56 PM   #39
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
all righty folks,
I finally got the breakdown per file extension:

Quote:
*.azw 6 files, 33.2MiB
*.azw3 178 files, 2.4GiB
*.azw4 3 files, 227.7MiB
*.cbz 3 files, 1.7GiB
*.chm 1 files, 883.4KiB
*.db 1 files, 22.9MiB
*.djvu 17 files, 67.3MiB
*.epub 6,775 files, 36.5GiB
*.htmlz 113 files, 468.6MiB
*.jpg 7,748 files, 2.0GiB
*.json 7,748 files, 29.4KiB
*.kepub 7,748 files, 2.3MiB
*.kfx 7,748 files, 2.0MiB
*.kfx-zip 7 files, 26.4MiB
*.mbp 12 files, 1.5KiB
*.mobi 214 files, 348.5MiB
*.odt 214 files, 30.8KiB
*.opf 3,352 files, 38.1MiB
*.original_epub 193 files, 1.5GiB
*.pdf 768 files, 7.3GiB
*.txt 768 files, 372.8KiB
*.zip 2 files, 1.3MiB
droopy is offline   Reply With Quote
Old 08-06-2020, 02:22 PM   #40
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,076
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You could recover 1.5G by off loading Original_EPUB. (click the format in the tag browser: select all:rightclick Delete: remove specific format:<select>

IMHO these can usually go after you have created you FINAL clean EPUB (or AZW3)
as always YMMV

Your EPUB must have lots of (big) embedded graphics or embedded fonts to hit 36G with 7K books

This seems odd. note the file count
Code:
*.json 7,748 files, 29.4KiB   <I only have ONE
*.kepub 7,748 files, 2.3MiB
*.kfx 7,748 files, 2.0MiB
theducks is offline   Reply With Quote
Old 08-06-2020, 03:15 PM   #41
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Polish ePubs has a "losslessly compress images" option that may also help reduce the filesize.
ownedbycats is offline   Reply With Quote
Old 08-06-2020, 03:21 PM   #42
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
theducks,
ah, yeah, that's odd. that the file count for all 3 disparate extensions are identical.
what's going on, I wonder.
droopy is offline   Reply With Quote
Old 08-06-2020, 05:07 PM   #43
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,076
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by droopy View Post
theducks,
ah, yeah, that's odd. that the file count for all 3 disparate extensions are identical.
what's going on, I wonder.
They are not big, but it may be from some plugin you are using (I, obviously, am not, since the only json is the standard for recovery)
theducks is offline   Reply With Quote
Old 08-06-2020, 05:15 PM   #44
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What's with the 7748 ,jason files?
JSWolf is offline   Reply With Quote
Old 08-06-2020, 05:19 PM   #45
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,076
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
What's with the 7748 ,jason files?
I suspect some form of Annotation archive
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Library File Structure for Books Exported to eBook Device otta56 Library Management 7 04-15-2020 10:29 AM
How to sync library after exported library chantw0968 Library Management 3 10-30-2017 08:40 PM
Books blank when exported Joosca77 Library Management 2 06-10-2011 10:33 PM
7000 books ! A new milestone for the MR Library ! zelda_pinwheel Announcements 26 12-12-2008 11:46 AM


All times are GMT -4. The time now is 06:05 AM.


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