Scanning external storage ONLY

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
Mophus
Beginner
Posts: 11
Joined: Thu Mar 24, 2016 12:36 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.16

Scanning external storage ONLY

Postby Mophus » Wed Jul 20, 2016 9:52 am

How do I set the `--path` parameter in order to scan an external storage (for a specific user ${OC_USER})?

These will update all files of ${OC_USER}:

Code: Select all

sudo -u apache ${OC_ROOT}/occ files:scan ${OC_USER}
sudo -u apache ${OC_ROOT}/occ files:scan --path="${OC_USER}"


This will update only the internal files of ${OC_USER}:

Code: Select all

sudo -u apache ${OC_ROOT}/occ files:scan --path="${OC_USER}/files"


This doesn't work:

Code: Select all

sudo -u apache ${OC_ROOT}/occ files:scan --path="/path/to/external/files" ${OC_USER}

Code: Select all

Unknown user 1 var

  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: No registered users and 1 guest