You can back up your data to external storage connected to your Mac or available in your network. You can use the command to add your backup location for a shared Mac:
tmutil setdestination –a smb://<user>:<passoword>@<ip address>:/<backup hard drive name>
To add an external drive as a backup location:
tmutil setdestination –a /Volumes/backupdrive