Backups are the solution to this problem and backups are necessary no matter where you store your data. Don´t trust commercial 'cloud storage' providers to do this for you, make sure you have backups available and test whether those backups can be restored before you need to do this in earnest.