Time Machine is the built-in backup feature for Mac and, to use it, you need an external storage solution that could be an external hard disk or part of a NAS system.
One thing to keep in mind is that when your time machine backup disk is not available, local snapshots are created to help Time Machine restore data (more about local snapshots here).
While this may sound like a great feature, there are times when a huge part of your SSD is utilized by those local snapshots, and the only way to clean this up is through the command line utility
Save disk space by deleting your local snapshots
Step 1. List available local snapshots
First of all, you need to find out how many local snapshots exist in your local SSD. To do so, you need to execute the following command:
sudo tmutil listlocalsnapshots /Volumes/
This command will result in listing all available local snapshots in your disk:
Step 2. Delete local snapshots
Next, you need to manually delete each local snapshot based in there
$ sudo tmutil deletelocalsnapshots 2017-10-20-002004 $ sudo tmutil deletelocalsnapshots 2017-10-20-165646 $ sudo tmutil deletelocalsnapshots 2017-10-20-090744
Believe it or not, deleting local snapshots resulted in saving me around 203GB of data…