Well i agree its not a viable method for taking backups of production databases.
But is there anyway to modify my script.

Regards

Pradipta