https://www.machinet.net/tutorial/automate-data-backup-restoration-python