Insert the USB drive, head to Settings > System > Back Up and Restore, then select the Back Up PS4 option. You want to back up saved data, since that includes your game saves, but you can also ...
Restore Technique chose the newest version of the PS4 Slim because it features a smaller ... but removed the optical drive, retained one USB port, and replaced the HDD with a smaller SSD.