Backport old backup system. Should preserve previous backups when updating the app.