Add basic working version of backup/restore