How about mounting that Windows-share in your Linux?
Put this in /etc/fstab:
Code:
//servername/sharename /mountpoint cifs noauto,user,username=pingu,passwd=xxxx,gid=501,uid=501,iocharset=iso8859-15
If you want it done automatically at bootup, change "noauto" to "auto"
Now those "uid=,gid=,iocharset=" are appropriate for me. It makes my Linux-user own the directory and uses my Swedish characterset.
Another possibility is making a script, I had this in/usr/local/sbin/localmount:
Code:
mount -t cifs -o credentials=/usr/local/etc/me -o uid=501 -o gid=501 //servername/sharename /mountpoint/
And a file only readable by root(!) /usr/local/etc/me with two lines:
Code:
username=pingu
password=xxxx
Then run 'localmount' when I want it mounted (with $PATH set, of course) or add a link in /etc/rc#.d/ to execute the localmount script at bootup.
All you need do then is a normal copy-operation, could easily put that in crontab.