docspell icon indicating copy to clipboard operation
docspell copied to clipboard

Nextcloud & Docspell

Open poltrian opened this issue 2 years ago • 14 comments

Is there a possibility to connect wiith Nextcloud Folders?

poltrian avatar Apr 25 '22 08:04 poltrian

I never used Nextcloud, so no idea what a "Nextcloud Folder" is :/. I guess it's not possible. If you can expose files via cifs or other ways, it could work.

eikek avatar Apr 25 '22 09:04 eikek

I have used webdav mounts for other projects. Nextcloud does not like files being moved that way though from my experience. And afaik docspell needs to copy a document to use it. So you'd be duplicating your files.

TheFehr avatar Apr 25 '22 10:04 TheFehr

@poltrian what is your goal by using a nextcloud folder? Easier upload? Access to the pdfs through nextcloud?

TheFehr avatar Apr 25 '22 10:04 TheFehr

Access to pdf on Nextcloud and easier upload. And all documents in one folder. So I have my documents on Nextcloud.

poltrian avatar Apr 25 '22 10:04 poltrian

Yes, docspell always copies documents into its own storage. There is no builtin way to access files via webdav. If you want all documents in one folder on your nas, I think the best way currently is to somehow watch this folder - best is directly on the machine where the files are physically localted. The dsc tool can be started on the machine running nextcloud, for example, I assume that nextcloud creates its folders soemwhere in the filesystem. And … live with the duplicated data.

eikek avatar Apr 25 '22 10:04 eikek

One option might be to use a mounted webdav folder as the directory where docspell puts the files.

But then any changes from nextcloud would be a terrible idea.

But that would solve the duplication error. And upload would need to be a seperate folder watched either by the nextcloud server or via another synced directory. This would be a lot slower though than just opening docspell and drop it in there I'd say.

TheFehr avatar Apr 25 '22 12:04 TheFehr

The easiest solution. Though not a direct connection is to use the external sites app. With that you can add a custom navigation item to nextcloud aka your docspell

TheFehr avatar Apr 26 '22 12:04 TheFehr

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. This only applies to 'question' issues. Always feel free to reopen or create new issues. Thank you!

stale[bot] avatar May 30 '22 21:05 stale[bot]

Nextcloud integration would also be an important point for me. I haven't installed Docspell yet, so I don't know what its storage looks like. But if it's a simple file system, how about the other way around. Use the external storage plugin on Nextcloud to mount the Docspell storage.

pxxsxx avatar Jun 07 '22 14:06 pxxsxx

Docspell can be configured to store files in the filesystem. But this is an internal "format", so not something that should be accessible from outside docspell (besides backups). There is the idea to provide a different access to the server (see #445 and #717 ) - but this is not done.

I think for now I would live with the duplicated files, tbh.

eikek avatar Jun 07 '22 17:06 eikek

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. This only applies to 'question' issues. Always feel free to reopen or create new issues. Thank you!

stale[bot] avatar Jul 08 '22 05:07 stale[bot]

#1649 could be what is needed to make the connection to Nextcloud easier / viable

TheFehr avatar Jul 13 '22 07:07 TheFehr

But wouldn't it be essentially the same thing as running the export right now? The files are still duplicated in that they exist in docspells internal sotrage and also on the filesystem. I'm not sure that #1649 would make really a difference to using dsc and periodically run the export command 🤔 ?

eikek avatar Jul 13 '22 08:07 eikek

Very true, I mean I don't fully understand the use case for the link to Nextcloud myself either. I am happy with it being it's separate app/tab. It just thought that #1649 would make the use case as I understand it easier.

TheFehr avatar Jul 13 '22 08:07 TheFehr

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. This only applies to 'question' issues. Always feel free to reopen or create new issues. Thank you!

stale[bot] avatar Aug 13 '22 04:08 stale[bot]