237
edits
m (Added Possible Issues) |
SaratogaWX (talk | contribs) m (Text replacement - "http://sandaysoft.com/forum/" to "https://cumulus.hosiene.co.uk/") |
||
| (7 intermediate revisions by 4 users not shown) | |||
|
Cumulus has the ability to upload files to your webserver at regular intervals, however this is an 'all or nothing' feature -- If Cumulus is set to upload to your website every 10 minutes then every file will be uploaded every 10 minutes.
As your website becomes more advanced you may wish additional data available on the site, and the most common need is the [[
The dayfile.txt file only changes once per day therefore it is extremely inefficient to upload this every 10 minutes, far better to do a once per day upload.
Starting with version 1.9.2, Cumulus now has the ability to invoke a command or external program once a day. This is configured via the ''Configuration | Internet Options | External Programs ''dialog box. Whatever is entered in the "Daily" section will be invoked once a day, just after the daily rollover processing is completed.
= Automation =▼
In order to achieve this, we rely on a few components: ▼
▲= Automation =
*A script for uploading (ftp'ing) the file
▲In order to achieve this, we rely on a few components:
▲* A batch file to run the command to upload
Using a good text editor, such as [http://notepad-plus-plus.org/ Notepad++] or Notepad (if you must!), copy and paste the following into a blank file: ▼
▲Using a good text editor, such as [http://notepad-plus-plus.org/ Notepad++] or Notepad (if you must!), copy and paste the following into a blank file:
▲<pre><user>
▲<password>
▲cd <folder>
put c:\cumulus\data\dayfile.txt
quit
</pre>
Replace: ▼
▲Replace:
* <user> with your ftp login username. This will be the same as the one in Internet Settings in Cumulus Configuration▼
* <folder> should be as per 'Directory' in Cumulus Internet Config▼
The 'put' entry should be followed by the full path to dayfile.txt on your Cumulus PC▼
Save this file as <tt>dayfile.ftp</tt> in the Cumulus folder of your PC (example, in c:\Cumulus)▼
Now create a batch file to use this script. Again in your text editor create a new file (File, New?) and paste the following:▼
<pre>ftp -s:c:\cumulus\dayfile.ftp <hostname></pre>▼
▲*
Replace▼
*
* <tt>c:\cumulus\dayfile.ftp</tt> with the full path and filename used when saving the Script file above▼
▲The 'put' entry should be followed by the full path to dayfile.txt on your Cumulus PC
Save this file as <tt>upload-dayfile.bat</tt> in c:\cumulus (or your Cumulus folder if different)▼
▲Save this file as <tt>dayfile.ftp</tt> in the Cumulus folder of your PC (example, in c:\Cumulus)
== The
▲Now create a batch file to use this script.
▲Replace
*<hostname> with the same setting in your Cumulus Internet Settings
▲*
▲Save this file as <tt>upload-dayfile.bat</tt> in c:\cumulus (or your Cumulus folder if different)
<br>
== Cumulus settings ==
On the Internet Settings screen, put <tt>c:\cumulus\upload-dayfile.bat</tt> in the Daily box. Leave the params empty.
== Running manually ==▼
If you wish to run a manual upload, perhaps to test the command is successful, simply run the batch file:▼
▲== Running manually ==
and type <tt>c:\cumulus\upload-dayfile.txt</tt>▼
▲If you wish to run a manual upload, perhaps to test the command is successful, simply run the batch file:
Check your webserver for dayfile.txt using your normal ftp tool▼
▲Check your webserver for dayfile.txt using your normal ftp tool
== Advanced ==▼
▲== Advanced ==
For more advanced control over the your uploads consider using the features in Cumulus [[Toolbox]]▼
▲For more advanced control over the your uploads consider using the features in Cumulus [[Toolbox]]
<br>
== Possible Issues ==▼
▲== Possible Issues ==
The FTP tool being used here is the one which ships with Windows; it is a relatively simply implementation and may not support the requirements of your webserver. There is some useful reading in [http://sandaysoft.com/forum/viewtopic.php?f=18&t=4821 this] forum topic which may help if you have issues.▼
▲The FTP tool being used here is the one which ships with Windows; it is a relatively simply implementation and may not support the requirements of your webserver.
[[Category:WebTools]]
| |||