Yes, backup your data somewhere else.
(1) Gitlab/Github for source code (almost free)
(2) automysqlbackup (or similar) to an S3 bucket for your database (very cheap) using S3FS
(3) Make sure you have a way to reproduce your entire server environment using fabric, ansible, chef, puppet (or Docker images) that is also in source control
If you have PROD code, this is normally called DR (Disaster Recovery)