nextcloud occ 命令集锦

Tags:

参考 https://docs.nextcloud.com/server/15/admin_manual/configuration_server/occ_command.html

# 获得可信域名列表
sudo -u www php occ config:system:get trusted_domains

# 将第2位改成example.com (0-index)
sudo -u www php occ config:system:set trusted_domains 2 --value=example.com

# 文件操作
# rescan filesystem
sudo -u www php occ files:scan --all
# cleanup filecache
sudo -u www php occ files:cleanup              
# All files and folders are moved to another user - shares are moved as well.
sudo -u www php occ files:transfer-ownership   

Leave a Reply