Where and how are the acutal files stored?

I am running a test instance of Nextcloud installed from the snap package on an ubuntu server.

Now I have a file with the term ‘stunt’ in the filename but when I try to find that with

sudo updatedb && locate stunt

… in the command line of that server nothing comes back.
So where are the files shared through Nextcloud physically stored on the machine serving the Nextcloud instance?

guessing inside an sql database?

1 Like

Try: find / -name \*stunt*

2 Likes

Data is stored here: /var/snap/nextcloud/common/nextcloud/data/

3 Likes

nice that you can mark your own post as solution (which it is. thanks for that).

now taking it a little further (and maybe OT in a strict definition of the topic) …

is there a common strategy how to handle a growing /var/snap/nextcoud/ folder efficiently?
I mean where do others move that to. Do you put the entire /var/ away from your (maybe small) system drive, or only /var/snap/ or …

I guess you could try two ways - create a large filesystem on another disk (or elsewhere), integrate it into Nextcloud using the external storage app and move the content there, which is how I manage my 42TB storage array whilst keeping it available via other means (CIFs, SFTP, etc):

image

… or potentially also “move” your data dir:

“Move” because you’d be symlinking from the existing to new location. Pretty sure that’s supported with the snap install.

3 Likes

In wy nextcloud directoy havent data

In my version (19) I find data in /mnt/ncdata/

bye

You could always symlink an LVM set of drives to /var/snap/nextcloud/common/nextcloud/data/. It could even be on an external NAS, right? NOW you’re talkin!

Great! How does one do this running nextCloud in Docker? I like the idea, as @JaysonBayton states, of having my files also available through other services.

While @JasonBayton is correct that the data is stored in /var/snap/nextcloud/common/nextcloud/data , what he did not say is that the normal user can only see as far as /var/snap/nextcloud/common. To see further than that you need to sudo bash.

Nextcloud has many files and folders which are only visible to those with root access.

A post was split to a new topic: Data location in docker

in my nextcloud-data folder there are user files folders where I can see user Photos, Notes, Documents.

Can someone point me to contacts and calendar storage location? I am considering my backup & DR…

Thanks