Docker occ scan

php occ files:scan –help

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description:
rescan filesystem

Usage:
files:scan [options] [--] [<user_id>...]

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

Options:
--output[=OUTPUT] Output format (plain, json or json_pretty, default is plain) [default: "plain"]
-p, --path=PATH 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
--unscanned only scan files which are marked as not fully scanned
--shallow do not scan folders recursively
--home-only only scan the home storage, ignoring any mounted external storage or share
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--no-warnings Skip global warnings, show command output only
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Scan All User

1
2
docker exec -it --user www-data nextcloud php occ files:scan --all [--quiet]

List User

1
2
docker exec -it --user www-data nextcloud php occ user:list

Scan User

1
2
docker exec -it --user www-data nextcloud php occ files:scan User

文章作者: Barry
文章链接: http://blog.purplelin.com/2021/03/21/DockerOccScan/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Barry