Manually add files and folders to ownCloud

There are many ways to add files to your ownCloud:

  • FTP Upload
  • SCP Upload
  • Local disk to ownCloud disk transfer
  • USB disk to ownCloud disk transfer.

But it can be pretty slow and painful process if you are adding large number of files.

Easier way is to copy the files directly to your ownCloud data directory and scan them in order to be properly added and indexed by ownCloud.

First in order to do that you need to find the “occ” command which is usually found in the root of your owncloud web directory for example /www/owncloud/occ.

Then you copy your files and folders to the data directory where your personal files are located, it could be something like /owncloud/[USERNAME]/files/.

When your files are in the new location then you need to start the scan:

sudo -u www-data php /var/www/owncloud/occ files:scan --all

Depending on the amount of files you are adding this can take some time, and will print out the results when finished.

That’s it your files and folders are now manually added to your ownCloud.