These are the bash scripts I use to backup and restore my data.