owncloud扫描文件

kevin.Zhu 发布于:2013-7-2 18:42 分类:owncloud  有 17 人浏览,获得评论 0 条  

Owncloud Version: 5.0.22

Method 1: Using console.php file to rescan the owncloud filesystem.

Syntax:
For User:

/path/of/owncloud/console.php files:scan Userid

For full scan:

/path/of/owncloud/console.php files:scan --all

For eg. Here I have my these details. Hence the change the below given values as per your details

Owncloud installed path: /var/www/owncloud
Userid: sharad

/var/www/owncloud/console.php files:scan sharad

For full scan

/var/www/owncloud/console.php files:scan --all

Method 2: This method requires mysql server username and password. Here we will truncate the table which store the filesystem information.

The details of my mysql server
Note: Replace the value as per your information in given below fields.

Database Name: owncloud
Table Name: oc_filecache

Step 1: Login into mysql server

mysql -u root -p

Step 2: After login into mysql server you will mysql prompt (mysql >)

Change to owncloud database. Here for my owncloud server,I am using the database name owncloud.

mysql > use owncloud;

Step 3: Now truncate the table oc_filecache

truncate oc_filecache;

Clear filecache from database of particular user,follow the given below steps

Here, we are clearing filecache for user called sharad. First we will get its storage id then clear its rows from oc_filecache table

UserID = sharad