Blog
Update: scp uses SFTP now
12 Aug 2023In my first "real" blog post, I was looking for an alternative to the scp utility. The authors had described the SCP protocol as "outdated, inflexible and not readily fixed" and recommended switching to alternatives like rsync or SFTP.
In the years since I made that post, the scp utility was switched to the SFTP protocol. OpenSSH 8.7 introduced experimental support, and since OpenSSH 9.0, released on 8th April 2022, scp uses SFTP by default. The old SCP protocol is still available via the -O flag.
Watching Nextcloud with inotify
25 Jul 2021
    Sometimes, I want to dump a file into Nextcloud and have it automatically appear on a website. Since Nextcloud is hosted on my NAS at home, while the web server runs on a VPS in a datacenter, the files will need to be copied over.
    
    How could this be done?
In this post, I am using inotify and rclone to implement what I want.
Total Combined Size of a ZFS Snapshot
28 Aug 2020
    Since I started using FreeBSD and ZFS last year, I've always wanted to recursively determine the total space used by a snapshot. After recursively taking a snapshot, the used space can be displayed on each individual dataset, but not all at once.
    
    Now, I have finally found a solution and made a shell script.
rsync, scp and trailing slashes
05 Jul 2020
    rsync could be an alternative to scp, but its questionable behaviour around slashes may be an issue.