First working version for backup. Still needs restore and error
handling.