Sync file structure from CLI

CLI command to synchronize a file structure with the Group-Office database

Group-Office automatically import the file structure into the database. On version 6.4.x there is a tool to run the import manually. However, if the file structure is quite large the tool will timeout and return a “Gateway Timeout” error. The following command line allows to run the synchronization from the Group-Office CLI with no time out issues:

#php groupofficecli.php -r=files/folder/syncFilesystem

Rebuilding cache
Resetting state
Registering all entities

CLI command to rebuild cache, reset state, register all entities

#php groupoffice/cli.php core/System/upgrade

Would like help with Group-Office or with your project?