On macOS (I also use it on Linux, haven't tried on Windows):
brew install libimobiledevice
## to disable iCloud backups
idevicebackup2 cloud off
## if you want encrypted backups (native encryption)
idevicebackup2 encryption on -i
## backup to a folder
idevicebackup2 backup backup-folder
## restore from a backup
idevicebackup2 restore backup-folder
This uses the same format as iTunes, which stores them in ~/Library/Application Support/MobileSync/Backup
http://www.libimobiledevice.org
On macOS (I also use it on Linux, haven't tried on Windows):
This uses the same format as iTunes, which stores them in ~/Library/Application Support/MobileSync/BackupThere are more utilities included:
You can also mount your iPhone's filesystem using ifuse (the only one in a separate package): Parts of these protocols have been around since the first iPhones, I find it highly unlikely Apple will remove these anytime soon.