Jump to content
Sign in to follow this  
p0is0n

Automatic FTP uploads

Recommended Posts

Hey guys,

 

My google-fu is failing me today, I've found some software that does this, but the ones I've tested don't seem to do support binary transfers. It should be pretty simple.

 

I don't need anything fancy, just software that can watch a folder for items being scanned by a usb scanner, and upload to an FTP where they will be grabbed by software on the server.

 

Has to work on Windows, and would prefer open source.

 

Anyone have any suggestions or experience with software that does this?

 

Thanks

 

Edit: testing Auto FTPnow.. but open to any suggestions.

Edited by p0is0n

Share this post


Link to post
Share on other sites

thanks for the suggestion, I can try mapping a network drive and scanning straight into it. dunno why i didnt think of that before.

Share this post


Link to post
Share on other sites

If you dont need an offline copy too; sure!

the network drive is a watch folder for a document management system, which is backed up nightly so offline copies aren't required. I've got 2 giant multifunctions set up to scan direct to ftp, but this particular user has a usb scanner they want to use from their office without having to get up and walk to one of the communal scanners... so hence why im looking for these kind of solutions :)

Share this post


Link to post
Share on other sites

Have you thought about just scripting this up?

 

Setup a scheduled task to compare the two folders at whatever interval is appropriate for you.

 

When it shows new files / folders on the left copy it to the right.

 

Do an md5 / SHA sum of both if you want.

 

It should be easy enough to do in a language like python or perl that has a good library of plugins for things like FTP and email to email you warnings or job completion.

 

Being a windows box you could use powershell for this as well.

 

Edit: as M_S suggested SFTP would be better but if you are running a full MS environment it can be a pain in the ass to setup and flaky to boot.

 

Unencrypted protocols FTL.

Edited by Xen

Share this post


Link to post
Share on other sites

Thanks guys, if it was my own data i'd probably use SFTP, neither of the multifunctions use SFTP so I won't bother with it on this scanner either.

Mapping as a network drive doesn't work unfortunately, so I'm back to AutoFTP. Was going to test it this morning but ran out of time on site so will wait till next time I'm out there. It's not an urgent job, just something I need to try and do eventually to save them a few seconds of time.

 

I'll look at a script to do it, however would need to be able to detect a change in the watch folder instantly to be worth while doing. I will be sure to share whatever solution I end up using.

 

Thanks.

Edited by p0is0n

Share this post


Link to post
Share on other sites

I forgot to update this but I will do it now as I've had to do something similar again. I ended up using some free software called WinSCP which allows scripting of most functions.

 

I created a batch file that launches the program:

winscp.exe /log=%TEMP%\!S.log /console /script=test.txt

Then a text file (script) which does what I need it to do:

option batch on 
option confirm off 
open ftp_user@ftp.server.com.au

put -delete "C:\test folder\"*.tif *.pdf *.txt /Test/

exit

This will upload all files in the specified folder to the /Test/ folder on the FTP server and then delete then once the upload is confirmed. This is exactly what I needed it to do.

I then scheduled the task to run every 5 minutes so the scans are quickly sent to the FTP server and then grabbed by the document manager as they land in it's watch folder.

 

Very simple, works very well. Supports SFTP and also supports a lot of other functions and is very customisable. Highly recommended.

Best of all its free and open source.

WinSCP

Share this post


Link to post
Share on other sites

seeing that tool really highlights to me where we're going wrong in IT.

Integration.

 

Every bloody thing has its own 'tool' now. Why cant FTP always be a folder like it used to be?

Why cant I map vitual CDroms easily across a network? (i know i can share them, but the PC doesnt look at it as a CD, its a rad only file share)

 

I miss the days of seamless daemontools, Novell Netware, and NetMeeting being the go-to's.

 

Microsoft needs to stop developing for a second, but the rights to integrate the 'big things' used online into their software, and away we go!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×