User Tools

Site Tools


docu:csheet:sysadm:web:apps:nextcloud:export_import_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docu:csheet:sysadm:web:apps:nextcloud:export_import_config [2021/06/18 11:26] (current)
admin created
Line 1: Line 1:
 +==== Export and import Nextcloud App configuration ====
  
 +\\
 +**Export the configuration** from the selected Nextcloud App:
 +<code bash>
 +# example: "user_ldap"  App
 +php occ config:list --private user_ldap > user_ldap-dump.json
 +</code>
 +
 +Now, you can **modify it and/or import** it to the destination server:
 +<code bash>
 +php occ config:import < user_ldap-dump.json
 +</code>
 +
 +Alternatively, you can write your own config manually or in a single-script, by doing:
 +<code bash>
 +php occ config:import << EOS
 +{
 +    "apps": {
 +        "user_ldap": {
 +            "s01ldap_userlist_filter": "(|(objectclass=user))",
 +        }
 +    }
 +}
 +EOS
 +</code>
docu/csheet/sysadm/web/apps/nextcloud/export_import_config.txt · Last modified: 2021/06/18 11:26 by admin