fixed up backup/restore function a bit, working on adding media/$name flash drive support