FTP - Put new files only
Posted: 20 Jul 2009 11:01
Ok,
This is beyond my scripting skills - from a windows network I connect to a unix box, I then put files on the unix box. All is fine however, the pdf file are quite large and do not change often, so the *.pdf call is not very efficient. I would like transfer only the new pdf files in the pdf directory. The other directories are just fine.
Can someone please help? Ill buy you a burger...
----------------------------------------------------
account
password
prompt ;toggle confirmation prompting to off
cd /filepathwhereallthepdssare/ ;change to desired remote directory
ascii
mput \\filepath\Web\*.html ; this is fine - small overhead
bin
mput \\filepath\*.pdf ;this is where there are just too many files to copy.
bye ;quit the FTP program
This is beyond my scripting skills - from a windows network I connect to a unix box, I then put files on the unix box. All is fine however, the pdf file are quite large and do not change often, so the *.pdf call is not very efficient. I would like transfer only the new pdf files in the pdf directory. The other directories are just fine.
Can someone please help? Ill buy you a burger...
----------------------------------------------------
account
password
prompt ;toggle confirmation prompting to off
cd /filepathwhereallthepdssare/ ;change to desired remote directory
ascii
mput \\filepath\Web\*.html ; this is fine - small overhead
bin
mput \\filepath\*.pdf ;this is where there are just too many files to copy.
bye ;quit the FTP program