Configure time machine on server first with smb
sudo tmutil setdestination smb://<username>:<password>@<server>/<dir>