ImportExport of the server’s settings and configurations¶
Question - do we have the configuration backup function, so we could restore the all users configurations after removal?
Answer - you can use the command:
sudo staffcop dumpdata agent.Config --indent 4 > config.json
For complete downloading of all the filters, configurations and users, you can use the following command
sudo staffcop dumpdata --indent=4 -n analytics.filter analytics.backupfilter analytics.corpusprocessfilter analytics.sessionprocessfilter analytics.extractextprocessfilter analytics.dimensioncardfilter auth.user agent.config agent.acl agent.accountacl agent.accountconfig> backup.json
Export with the filters
Note
This must contain the full path to the file
staffcop export [filename].json
Import with the filters
Note
This must contain the full path to the file
staffcop import [filename].json
–ident 4 - nice-looking indents to make file user-friendly