added library file for backup scripts, moved $target_url to it