Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-13-2016, 11:04 AM   #1
Chris Jones
Addict
Chris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five words
 
Posts: 242
Karma: 37089
Join Date: Oct 2012
Device: none
Disable writing to $HOME/.local/Trash/ directory

I just noticed that my $HOME directory (debian/linux) had grown to a whopping 16G in size... a tenfold increase since the last monthly full backup of this machine.

I had been working on a rather large epub (c. 30M) over the last month or so and I found hundreds of copies of the epub in the ./Trash/files directory.

A quick test indicates that a new copy is added each time I delete a book from the Calibre directory.

How can I disable this feature in Calibre and make sure nothing ever gets written to this directory?
Chris Jones is offline   Reply With Quote
Old 04-13-2016, 11:17 AM   #2
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,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Side questions:
Why is TRASH not being emptied?

Trash is used to give you a (slight) chance of recovering from an oops , not for other (long term) purposes
theducks is offline   Reply With Quote
Advert
Old 04-13-2016, 01:51 PM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I kind of like the idea of using Trash for its intended purpose.

I think the real problem is you are blindly backing up your entire $HOME
Add the Trash folder to your exclusion list. Better yet, add ~/.local to the exclusion list, since I can't really think of a lot of things you'd want to back up from in there!


I really do dearly hope you aren't backing up ~/.cache too because that would be terribly foolish...

...

If you are deleting many books at once, calibre warns you that they will be permanently deleted (it's faster than moving to Trash).
IIRC there is an option in the delete confirmation dialog to skip the Trash.
eschwartz is offline   Reply With Quote
Old 04-13-2016, 10:28 PM   #4
Chris Jones
Addict
Chris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five wordsChris Jones can name that ebook in five words
 
Posts: 242
Karma: 37089
Join Date: Oct 2012
Device: none
Quote:
Originally Posted by eschwartz View Post
I kind of like the idea of using Trash for its intended purpose.

I think the real problem is you are blindly backing up your entire $HOME
Add the Trash folder to your exclusion list. Better yet, add ~/.local to the exclusion list, since I can't really think of a lot of things you'd want to back up from in there!


I really do dearly hope you aren't backing up ~/.cache too because that would be terribly foolish...

...

If you are deleting many books at once, calibre warns you that they will be permanently deleted (it's faster than moving to Trash).
IIRC there is an option in the delete confirmation dialog to skip the Trash.
Aaaah thanks...!

I'd already excluded ~/.local just in case but I had missed ~/.cache (~800M+)...! That's roughly half of the size of my lean & mean $HOME directory...!

In any case... since I have no clue what purpose this hidden "Trash" directory might serve ... I just made sure Calibre will not be able to write to it:

$ chmod ugoa-w ~/.local/share/Trash

So far... so good...

CJ
Chris Jones is offline   Reply With Quote
Old 04-13-2016, 10:34 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
~/.local/Trash is where the Recycle bin for your desktop environment resides. If your desktop environment has no recycle bin then I suggest you setup a script to auto-clean it periodically. That's what I do on my qtile based desktop -- recycled files older than seven days are deleted automatically. Look for the autotrash script, you should find it floating around somewhere on the net.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-14-2016, 12:24 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Chris Jones View Post
Aaaah thanks...!

I'd already excluded ~/.local just in case but I had missed ~/.cache (~800M+)...! That's roughly half of the size of my lean & mean $HOME directory...!

In any case... since I have no clue what purpose this hidden "Trash" directory might serve ... I just made sure Calibre will not be able to write to it:

$ chmod ugoa-w ~/.local/share/Trash

So far... so good...

CJ
As Kovid said, the Trash directory is equivalent to Windows' Recycle Bin.
Most file browsers (among others) delete files to the Trash as a precaution against accidentally deleting things, there is also a python program called trash-cli that lets you trash and untrash things from the command-line.
It is easy to view the Trash from said file browsers, and empty it or permanently delete specific items.

There's all sorts of interesting types of dotfiles in the average home folder, you should definitely take a look at what you need and don't need to back up.

Happy to help, especially the reminder to exclude ~/.cache
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free (DRM-free) Ways to Trash Your Writing Career [Humorous SFnal Author Advice] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 2 04-30-2016 05:19 PM
Glo Disable reader stats icon on home page ? leftright Kobo Reader 6 04-01-2014 08:28 AM
New Romance Novel: Trash Course stevenharper Self-Promotions by Authors and Publishers 2 10-21-2010 10:11 PM
Free Ebook: Ways to Trash Your Writing Career suelange Self-Promotions by Authors and Publishers 1 08-04-2010 10:37 AM
moved location of Calibre home directory asperger Calibre 2 04-06-2010 08:02 PM


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


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