added multiple backup sources and targets and refactored the code