Make copy file logic common
Make copy file logic common

Move the file copy logic in ddr.py to a similar code path for both
backup and restoration of files. This replaces buggy inconsistent
copy/paste code with code that is common and probably correct.

bakergo/dewdrop