macOS allows you to create iPhone backups, but changing the storage location is only possible with the FlexiBackup utility, which costs $5.99.
Backing up your iPhone on macOS is convenient, but problems arise when you want to change the default backup location from iCloud. Unfortunately, macOS doesn’t provide a built-in way to do this.
However, you can use FlexiBackup to achieve this. Simply launch the utility, select a new storage location for your backups, and that’s it.

From now on, whenever you connect your iPhone and initiate a backup, it will be saved in the location specified in FlexiBackup. The same applies to restoring backups.
Pricing
There is no free trial version, and a license costs $5.99.