Improved DoBackUp() function