Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

new options for files:scan #1259

Merged
merged 2 commits into from
Jun 29, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions admin_manual/configuration_server/occ_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,22 @@ keys after upgrading your ownCloud server::
File Operations
---------------

The ``files:scan`` command scans for new files for the file cache, and isn't
intended to be run manually.
The ``files:scan`` command scans for new files and updates the file cache. You
may rescan all files, per-user, a space-delimited list of users, and limit the
search path::

$ sudo -u www-data php occ files:scan --help
Usage:
files:scan [-p|--path="..."] [-q|--quiet] [--all] [user_id1] ... [user_idN]

Arguments:
user_id will rescan all files of the given user(s)

Options:
--path (-p) limit rescan to this path, eg.
--path="/alice/files/Music", the user_id is determined by the path and the
user_id parameter and --all are ignored
--all will rescan all files of all known users

``files:cleanup`` tidies up the server's file cache by deleting all file
entries that have no matching entries in the storage table.
Expand Down