Export and import Nextcloud App configuration


Export the configuration from the selected Nextcloud App:

# example: "user_ldap"  App
php occ config:list --private user_ldap > user_ldap-dump.json

Now, you can modify it and/or import it to the destination server:

php occ config:import < user_ldap-dump.json

Alternatively, you can write your own config manually or in a single-script, by doing:

php occ config:import << EOS
{
    "apps": {
        "user_ldap": {
            "s01ldap_userlist_filter": "(|(objectclass=user))",
        }
    }
}
EOS