Automating a daily data dump into CMS Builder from a Windows PC

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 22, 2012   (RSS)

By sidcam - May 17, 2012

I need to populate several tables in my CMS Builder database from a 3rd party source on a daily basis. The 3rd party offers a Windows program that can automate the data downloads to a text or XML file.

I know there are import tools for CMS Builder (and MySQL in general), but I need the process fully automated since it has to be done daily.

Does anyone have any suggestions as to how I get Text/XML data on a Windows machine into CMS Builder on a Linux webserver without human involvement (past setup of course)?

Thanks in advance to all who reply.

Sid

Re: [Dave] Automating a daily data dump into CMS Builder from a Windows PC

By sidcam - May 21, 2012

Thanks Dave.

This is real estate MLS data, so I access it using an industry protocol called RETS. I had custom scripts on my webserver for this, but my MLS changed database vendors so they're now worthless.

The easiest/cheapest way for me to download the data is with a Windows RETS client my MLS' database vendor wrote. So my original question was looking for advice on how I automate the transfer of data files to my webserver from a Windows box (so you guys can work with it).

Questions for you:

The data files will be delimited but can be tab, CSV or pipe. Which works best for you (or does it matter)?

Do you want the data files to have a header? (it can be either way)

The guy who wrote my original RETS scripts told me after the fact that the "cms_" created by CMS Builder added a lot of work to his mapping (it was 2,000+ fields in 14 tables). Will that be a problem for you? If so is there a way to turn the "cms_" off without disrupting the existing tables?

I can email/upload a sample once you tell me the format you want it in. Just let me know how to send it to you. My MLS will require a confidentiality agreement signed by you but I might already have that on file (I've hired you before).

Thanks, Sid

Re: [sidcam] Automating a daily data dump into CMS Builder from a Windows PC

By Dave - May 22, 2012

Hi Sid,

>how I automate the transfer of data files to my webserver from a Windows box (so you guys can work with it).

I'd either setup a web server on your windows box so the web server can request the data file via a secret URL, or setup a automated FTP process to FTP the file from the windows box to the web server.

Here's some articles on creating windows batch files to automatically upload files:
http://www.howtogeek.com/howto/windows/how-to-automate-ftp-uploads-from-the-windows-command-line/
http://support.microsoft.com/kb/96269

>The data files will be delimited but can be tab, CSV or pipe. Which works best for you (or does it matter)?

We can work with anything but I'd say CSV first, followed by tab and then pipe. However, If there's a default format that's easiest just send us that.

>Do you want the data files to have a header? (it can be either way)

If it's easy I'd say yes, as we can then add a line of error checking to not import if the header is different (good for detecting future changes that would otherwise break things)

>If so is there a way to turn the "cms_" off without disrupting the existing tables?

If we're writing a script on the web server to import from a database then we can do the field mappings there, and the table prefix doesn't need to match or be there. So not a problem if it's there or it's not.

>I can email/upload a sample once you tell me the format you want it in.

Sure, just send any details to me direct at dave@interactivetools.com and we can figure out the next steps. Thanks!
Dave Edis - Senior Developer
interactivetools.com