more error handling for path to backup directory