Samba Empty Folder

I recently had an folder in one of my network shares showing up empty, despite the fact that it was not empty. After some investigation it turned out that the containg folder had a trailing space symbol, which is not allowed in the SMB protocol. Removing the trailing space (and reloading the mount) fixed the issue. I ran the following command to see if I had more folders with that issue and sure enough I found another one.

Fixing Half Network Bandwidth Issue

A little while back I got a small PC to turn into a small server running True NAS. While testing the network performance with iperf3 I noticed that the network bandwidth when sending data from the server was only half of the availabe bandwidth of network. The problem was not specific to True NAS but rather an issues introduced in the underlying Linux driver for the network card. In a nutshell the temporary fix is to disable the offloading feature of the specific network card, i.e.:

Speedup Restic Backups After A Drive Replacement

I recently had to upgrade an external hard drive to a higher capacity. I used rsync in the archive mode to ensure to preserve all the necessary meta data. One of the main reasons for this was to avoid having to re-read the whole drive in backup programs (due to changed timestamp). In the case of restic though it was scanning all the files nonetheless.

Download a Webpage for Offline Access

How to download a webpage to access it offline?

Sometimes it is useful to download/mirror a webpage locally such that you can access it without internet connection (e.g., download documentation of a library tool). This is easily down via wget. The following command shows all the necessary parameters we need:

# wget --no-check-certificate --no-clobber --page-requisites -m -np -k https://www.foo.com