Here is a special application for the specific Backup SMS for android that allows you to backup your text messages on android. When your sms is deleted you can restore with SMS backups that have been auto-backup.
SMS Backups + is a small application that automatically backup your SMS, MMS, call log entries using a separate label in Gmail/Google Calendar. It is also possible to restore the SMS and call log entry back to your phone whenever you want to restore. Remember to enable IMAP in Gmail and set the correct time/zone.