I need to transfer files from Unix to Windows server. After creating a folder in the windows server files need to be copied from Unix to Windows. I am using psftp
to do this process.So, I am trying to automate this process using shell script but I do not know how to connect Unix and Windows by using psftp
in the shell script. Please some one guide me on this.
|
|||||||||||||
|
I would suggest using an NFS mount to copy your files. To install Services for NFS components:
http://technet.microsoft.com/en-us/library/dd758767%28v=ws.10%29.aspx Creating a Windows 2008 NFS share:
**note – This only creates an NFS share and not a network share. To enable ‘Network File and Folder Sharing’ you will need to go to ‘Properties’ and select the Sharing tab. If you enable this feature make sure that you go to the Advanced Sharing options and change the permissions for ‘Everyone’ to full control. Windows NFS share permissions: Windows has KeepInheritance turned off by default in the registry. Because of this, newly created files will not inherit the permissions from the parent share. To enable KeepInheritance: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerforNFS\CurrentVersion\Mapping\KeepInheritance Change the value to 1. Then open ‘Services for Network File System’, right click on ‘Server for NFS’ and select ‘Stop Service’. Once the service has stopped, right click again and select ‘Start Service’. Mounting a Linux System to a Windows NFS share: $ mount –t nfs hostname:/nfs_share_name localpath |
|||
|