• This is based on one serve host. If you want to run this script between server A and server B (and your backup files could be on either one or network somewhere) You have to use linkserver and UNC path to specify A and B. If you spend several minutes, you could figure it out.

    Madhu, This is a teaching script. Modify refactor for your own needs (publish back to us after). If you have a custom need, I will be happy to construct a contract business deal with you. At that point, we can write for you anything you desire.