i have mounted a folder to a windows share.
mount -t cifs -o username=xxxxx,password=xxxxx //xxx.xxx.xx.xx/windowspath/ /path/to/linux/folder
however i am unable to view the files in the linux folder now. and the files that are present in the folder are not transfering to the windows path . why is that the case.
this is the setup i am trying to achieve. Each time a file is created in the linux folder it should automatically be transfered to the windows folder.
When you use a directory with files or sub-directories as a mount point, that data will not be visible until the remote share is unmounted. In any case, what you are trying to do doesn't work that way. The only means I know of to automatically mirror data placed in one directory to another (remote or not) is by using something like the inotify sub-system, where you can have it configured to trigger a copy when a file is created, updated, or moved in a specific directory space.