Looking solution via programatically should take backup and restore from one server to another server. without using any third party.