You can restore your Mac using Time Machine and an external hard drive. Time Machine automatically creates backups of your Mac every hour.
You can restore your iPad from a backup by saving data to your Apple ID account, and then logging back in after the iPad ...