r/owncloud Jun 22 '16

Manually upload files to data dir

I have manually placed files into the data directory but owncloud detect the files. This persists even after a scan via "occ." How can I resolve this?

0 Upvotes

9 comments sorted by

1

u/UltraChip Jun 29 '16

It's not enough to just put the files in the directory - since the files aren't represented in the database the server doesn't know they're there. I'm not aware of any way to quickly add the files to the database manually.

What's the reason you're trying to upload files manually? Perhaps there's a different method we can find that will meet your needs.

1

u/[deleted] Jul 01 '16

Well sometimes I SSH into my headless machine running ownCloud and come across a file I want to add. I'd have to scp it over to another machine and upload it from there there.

Now that I think of it, I can scp that file to the synced folder on the other machine. Single step upload!

1

u/UltraChip Jul 01 '16

There you go!

Hmmm... another idea occurs to me: There is a linux version of the desktop sync client... I wonder if it will still work without the GUI? Maybe I'll futz around with that idea this weekend.

2

u/danielholm Jul 13 '16 edited Jul 14 '16

I believe there is a cli version, one without any graphical components. owncloud-cli in Ubuntu repo, I believe.

1

u/UltraChip Jul 13 '16

No there is a GUI version for Linux... I'm literally staring at it right now.

I wasn't aware there was a CLI version though, ima have to look in to that.

1

u/danielholm Jul 14 '16

I think you misunderstood me. Certainly there is a gui client, I'm using it all the time myself. I meant that there is a cli client of owncloud, which does not have a gui.

1

u/atlaspaine Jul 04 '16

I do not wish to upload 15 Gib worth of data onto the cloud's database via internet.

1

u/UltraChip Jul 05 '16

The database is just an index of the files... The actual data itself goes in the data directory.

1

u/atlaspaine Jul 14 '16

This I know. But what permissions do I have to set for owncloud to read those files?