![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 242
Karma: 37089
Join Date: Oct 2012
Device: none
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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 ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |