Ivan Drucker wrote an article on options for backing up the Mac over the network using Time Machine, now that the Time Capsule is no longer sold by Apple. (January 2022)
Read the article, Network Time Machine Backups: Moving On from the Time Capsule, on the TidBITS website.