I know that when using IMAP, changes made locally in your email client(s) are reflected onto the server, and vice versa. So if you delete an email in your email provider's webmail, it'll no longer show up in your email client(s), and so on.
That being said, what happens if I'm using IMAP and my email provider suffers from data loss (complete or temporary, the latter of which has happened to some GMail users before)? Wouldn't this then mean that my local email client(s) would show that I have no emails and I'd be screwed and wouldn't be able to access my emails unless I made backups myself?