🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

6 total messages Started by Lars Poulsen Sun, 01 Nov 2026 20:19
Backups
#7
Author: Lars Poulsen
Date: Sun, 01 Nov 2026 20:19
29 lines
2710 bytes
My Linux server/workstation has a 4TB external HDD (WD Black) attached 
via a USB3 port for backups. I do nightly _rsync_ with --linktarget
to avoid duplication. The backups cover all the other file systems, 
which have about 2 TB, and after almost a year, I still have only used 
2.2TB; yet the backups were failing with ENOSPACE. After some 
headscratching I found the problem: My efs4 file system on the backup 
drive had used up its 152 million inodes. Indeed, this particular mode 
of backup consumes very little storage, but tons of inodes.

While looking at this, I also noticed that the nightly backup run takes 
about 5 hours - from 00:05 to around 05:30 most nights.

Apropos backups: I have always (well at least 15 years) thought that it 
would be nice to have a module that would provide a HDD-like interface 
to Linux, but really be an encrypted storage area in the cloud, where 
the service provider did not have the key - only me, the client. Has 
anyone ever implemented that?

And apropos cloud services: Hetzner (Germany) provides a very simple VPS 
service. I get a virtual Fedora machine with a static IP address, where 
I can maintain my own system. Only drawback, is that due to the 
transatlantic link, latency slows down transfer speeds. I thought of 
trying to provision something like this on AWS, but the learning curve 
was so steeply uphill that I gave up. I am sure it can be done, but I 
have not seen a cookbook for it. And it would probably be more expensive.
-- 
Lars Poulsen - an old geek in Santa Barbara, California

Re: Backups
#8
Author: Carlos E. R.
Date: Tue, 03 Nov 2026 01:50
27 lines
1917 bytes
On 2026-11-01 21:19, Lars Poulsen wrote:
> My Linux server/workstation has a 4TB external HDD (WD Black) attached 
> via a USB3 port for backups. I do nightly _rsync_ with --linktarget

I can't find "--linktarget" in the rsync man page.

> to avoid duplication. The backups cover all the other file systems, 
> which have about 2 TB, and after almost a year, I still have only used 
> 2.2TB; yet the backups were failing with ENOSPACE. After some 
> headscratching I found the problem: My efs4 file system on the backup 
> drive had used up its 152 million inodes. Indeed, this particular mode 
> of backup consumes very little storage, but tons of inodes.
> 
> While looking at this, I also noticed that the nightly backup run takes 
> about 5 hours - from 00:05 to around 05:30 most nights.

If you are doing what I think, those hardlinks consume a lot of time 
checking.

And deleting old backups takes an awful lot of time.

...

-- 
Cheers,
        Carlos E.R.
        ES🇪🇸, EU🇪🇺.
Re: Backups
#9
Author: Lars Poulsen
Date: Tue, 03 Nov 2026 04:16
42 lines
3222 bytes
On 11/2/2026 17:50, Carlos E. R. wrote:
> On 2026-11-01 21:19, Lars Poulsen wrote:
>> My Linux server/workstation has a 4TB external HDD (WD Black) attached 
>> via a USB3 port for backups. I do nightly _rsync_ with --linktarget
> 
> I can't find "--linktarget" in the rsync man page.

Sorry, it is --link-dest=[$previous-day/$fs]

>> to avoid duplication. The backups cover all the other file systems, 
>> which have about 2 TB, and after almost a year, I still have only used 
>> 2.2TB; yet the backups were failing with ENOSPACE. After some 
>> headscratching I found the problem: My efs4 file system on the backup 
>> drive had used up its 152 million inodes. Indeed, this particular mode 
>> of backup consumes very little storage, but tons of inodes.
>>
>> While looking at this, I also noticed that the nightly backup run 
>> takes about 5 hours - from 00:05 to around 05:30 most nights.
> 
> If you are doing what I think, those hardlinks consume a lot of time 
> checking.
> 
> And deleting old backups takes an awful lot of time.
> ...

I finally figured out the root cause. I "accidentally" defined
my 100,000 image photo archive as a library in my Plex Media Server.
Plex then added descriptor bundles for each image into its "hidden" 
storage. That adds three directories and a thumbnail image for each 
image. More or less a million inodes consumed. While the rsync backup 
can deduplicate the FILES, the directories are duplicated in each day's 
backup. Eventually comsuming 140 million inodes on the backup disk.
I got CoPilot to help me remove the Photos from the Plex controlled 
media, and now I am getting all those media descriptor bundles revoved 
from 9 months of daily backups. And yes, it is going to take a few days 
to get them out.

This also explains why the media server has been responding so slowly 
for the last several months.

-- 
Lars Poulsen - an old geek in Santa Barbara, California
Re: Backups
#10
Author: Carlos E. R.
Date: Tue, 03 Nov 2026 11:07
52 lines
3025 bytes
On 2026-11-03 05:16, Lars Poulsen wrote:
> On 11/2/2026 17:50, Carlos E. R. wrote:
>> On 2026-11-01 21:19, Lars Poulsen wrote:
>>> My Linux server/workstation has a 4TB external HDD (WD Black) 
>>> attached via a USB3 port for backups. I do nightly _rsync_ with -- 
>>> linktarget
>>
>> I can't find "--linktarget" in the rsync man page.
> 
> Sorry, it is --link-dest=[$previous-day/$fs]
> 
>>> to avoid duplication. The backups cover all the other file systems, 
>>> which have about 2 TB, and after almost a year, I still have only 
>>> used 2.2TB; yet the backups were failing with ENOSPACE. After some 
>>> headscratching I found the problem: My efs4 file system on the backup 
>>> drive had used up its 152 million inodes. Indeed, this particular 
>>> mode of backup consumes very little storage, but tons of inodes.
>>>
>>> While looking at this, I also noticed that the nightly backup run 
>>> takes about 5 hours - from 00:05 to around 05:30 most nights.
>>
>> If you are doing what I think, those hardlinks consume a lot of time 
>> checking.
>>
>> And deleting old backups takes an awful lot of time.
>> ...
> 
> I finally figured out the root cause. I "accidentally" defined
> my 100,000 image photo archive as a library in my Plex Media Server.
> Plex then added descriptor bundles for each image into its "hidden" 
> storage. That adds three directories and a thumbnail image for each 
> image. More or less a million inodes consumed. While the rsync backup 
> can deduplicate the FILES, the directories are duplicated in each day's 
> backup. Eventually comsuming 140 million inodes on the backup disk.

Yep.

> I got CoPilot to help me remove the Photos from the Plex controlled 
> media, and now I am getting all those media descriptor bundles revoved 
> from 9 months of daily backups. And yes, it is going to take a few days 
> to get them out.
> 
> This also explains why the media server has been responding so slowly 
> for the last several months.

Yes, quite.


-- 
Cheers,
        Carlos E.R.
        ES🇪🇸, EU🇪🇺.
Re: Backups
#11
Author: Carlos E. R.
Date: Tue, 03 Nov 2026 11:09
23 lines
1895 bytes
On 2026-11-03 12:07, Carlos E. R. wrote:
> On 2026-11-03 05:16, Lars Poulsen wrote:
>> On 11/2/2026 17:50, Carlos E. R. wrote:


>> I finally figured out the root cause. I "accidentally" defined
>> my 100,000 image photo archive as a library in my Plex Media Server.
>> Plex then added descriptor bundles for each image into its "hidden" 
>> storage. That adds three directories and a thumbnail image for each 
>> image. More or less a million inodes consumed. While the rsync backup 
>> can deduplicate the FILES, the directories are duplicated in each 
>> day's backup. Eventually comsuming 140 million inodes on the backup disk.
> 
> Yep.

I use Leafnode in my desktop home computer to cache the nntp posts, one 
file per post. Lots of files. I exclude that directory from the rsync 
backup, and instead, zip it to the same destination disk.

-- 
Cheers,
        Carlos E.R.
        ES🇪🇸, EU🇪🇺.
Re: Backups
#12
Author: Anssi Saari
Date: Tue, 03 Nov 2026 15:00
14 lines
1851 bytes
Lars Poulsen <lars@beagle-ears.com> writes:

> Apropos backups: I have always (well at least 15 years) thought that
> it would be nice to have a module that would provide a HDD-like
> interface to Linux, but really be an encrypted storage area in the
> cloud, where the service provider did not have the key - only me, the
> client. Has anyone ever implemented that?

gocryptfs has a reverse mount mode: do a reverse mount of a local
directory, encrypted files appear there in the mount point, rsync those
to clod. I finally got around to setting this up last spring as my shell
provider offers 500 GB of storage and I wanted to make use of that.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads