Here is the modified file for taking backup from linux to windows using smbmount.
1. Replace NTUsername with network id and NTPassword with network password. 2. Make the folder shared where you want to take the backup. You should give the full access to that network login ID. 3. The owner of this script should be root. 4. Be sure that, smbd and nmbd are running. If not, start them. 5. If normal user wants to run this script, then be sure that the setUID bit is set for /usr/bin/smbmnt. 6. Add proper values for DIRTOARCHIVE, MNTPOINT, and ARCHIVETO. 7. Modify the smbmount command parameters as per your requirement.