For the last couple of months, my Mac's Time Machine encrypted backups to my 2016 tower Time Capsule haven't been working well. It took nearly the entire month of August to successfully complete a single backup. Additionally, I was getting reminders that the next version of macOS (Golden Gate) wouldn't support Apple Filing Protocol (AFP). AFP was Apple's proprietary file transfer protocol built into Time Capsule for transferring files.
While researching replacement external drives to plug into my Mac for Time Machine backups I came across TimeCapsuleSMB on GitHub. The beauty of Time Capsule is that it runs on NetBSD which is a Unix-like operating system. Running the TimeCapsuleSMB desktop app installs Server Message Block (SMB) to replace AFP on the Time Capsule.
Simply download the zipped up desktop app and run it against your Time Capsule. The instructions, documentation, and source code is thorough.
The only gotcha I had was that I had to disconnect my previous AFP-mounted volume and reattach it under SMB after rebooting both my Mac and the Time Capsule. Then I manually attached the Time Capsule hard drive:
1. Open TimeCapsuleSMB and run its Checkup. Confirm that SMB connectivity and authentication pass.
2. Connect through SMB in Finder: choose Go → Connect to Server (⌘K), enter smb://YOUR-TIME-CAPSULE-IP, replacing the placeholder with its IP address, and connect using admin and your Time Capsule device password.
3. Check whether your existing backup appears in that share. Look for a file ending in .sparsebundle. If it’s missing, pause here; the project’s default share uses a folder called ShareRoot, and your old backup may be outside it.
4. Once the backup is visible, return to System Settings → General → Time Machine, remove the old destination from Time Machine’s configuration, then add the newly available SMB disk. Choose to reuse the existing backup if offered.
Every backup I've attempted since installing TimeCapsuleSMB has succeeded without any issues.

