Automatically import pages to Confluence
Asked by Atle Rinvoll:

Hi

I know Confluence can import text files from a dir. and create pages of them. This can be done from the Confluence admin pages.

Is there a way to make Confluence do this automatically or do I have to implement a PlugIn for this?

I have a situation where I produce some log files every day and I want to make them visible for the customer in Confluence without any manual work.

Cheers

\\Atle


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) using actions like [addAttachment](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-addAttachment) or [storePage](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-storePage)

comments: author: David at David Simpson Apps
body: Awesome. I love it when I see Confluence CLI as an answer!


author: C. Faysal
body: Hi Atle,

you could use WebDAV i guess...

<https://confluence.atlassian.com/display/AOD/Uploading+Data+via+WebDAV>

comments: author: Atle Rinvoll
body: Ok, then I will investigate it further :-) Thanks


author: Atle Rinvoll
body: No, I am not running OnDemand and WebDAV seems to be just a directory share for the OnDemand version. But thanks for the answer.

\\Atle


author: C. Faysal
body: WebDAV can be configured for Download versions as well (we did)

to let some users edit/add spacecontent from outside the webbrowser


author: Atle Rinvoll
body: Two of the criterias for using WebDAV are not running Confluence over https and use port 80. I fail on both :-(


author: Atle Rinvoll
body: That was the one I was reading. It says the following:

To map a Confluence WebDAV client network drive, your Confluence instance must be configured so that *all* of the following criteria is met:

* Uses HTTP (not HTTPS)
* Listens on port 80 (not 8080, which is the default port value used by the popular application server Apache Tomcat that runs many Confluence EAR / WAR installations, or 8090, the default for [Confluence distributions](https://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide))
* Has no [context root](https://confluence.atlassian.com/display/DOC/Configuring+the+Server+Base+URL)
* There is an issue ([WBDV-208](https://studio.plugins.atlassian.com/browse/WBDV-208)) that can prevent Network Drives from being mapped. Please use the Network Folders steps below as a workaround.

The reason for these restrictions results from limitations in Microsoft's Mini-Redirector component. For more information, please refer to Microsoft's [server discovery issue](http://www.greenbytes.de/tech/webdav/webdav-redirector-list.html#issue-server-discovery).

I'm using https and port 8009. Or am I misunderstanding something here?

\\Atle


author: C. Faysal
body: that shouldn't really matter.

have a look at this KB:

<https://confluence.atlassian.com/display/DOC/Configuring+a+WebDAV+client+for+Confluence>

the https from the first url is related to the server config atlassian uses...

you will be able to connect on non SSL hosts too


author: C. Faysal
body: i won't say that you may be misunderstanding sth...

afaik webdav is included in confluence..(what version are you using?)

just give it a shot...and try to connect. there are examples for all platforms i.e. windows, max os x and linux


author: Atle Rinvoll
body: You are right. It works! I think this can be used. I will try this before the CLI-solution suggested. This is free ;-)


author: Ellen Feaheny [AppFusions]
body: Been loving Cyberduck for Webdav client with Confluence lately -

<http://cyberduck.ch/>

Great utility - recommend.

(Thanks Patrick Li for the tip!)


author: Atle Rinvoll
body: See the comment