To boot into Internet Recovery, shut down your Mac, and restart it while holding down the ‘Option+Command+R’ keyboard shortcut. If Recovery Mode is unreachable, then you can boot into Internet Recovery instead, which is a version of macOS’ Recovery Mode that’s available to all Mac users who have an active internet connection. However, under certain circumstances the standard ‘Command+R’ shortcut may not work, for example maybe your recovery partition is corrupt, or you’re experiencing total hard drive failure. When you see the Apple logo, release these buttons and your Mac should successfully boot into Recovery. This involves shutting down your Mac, and then restarting it while holding down the ‘Command+R’ buttons.
Most of the time, you’ll restore a Time Machine backup by booting into Recovery Mode.