Allows to export all metadata to a file. This file can be then imported by the command "import all". Usually you should directly zip and save the export data in the File System to save memory, as it will be filed in an XML dialect.
For exporting and zipping the export file, use export all | zip > myExportFile.zip. You will get a zipped ''data'' file, which can be renamed to ''data.xml'' before importing again.
If you don't need to zip the file, you can use export all > myExportFile.xml.
Note that the export file has to be created inside the internal file system: cd fileserver and the ''import all'' command needs an unzipped XML file.
Use: export all > myExportFile.xml
Enables to change groups. The following subcommands are available:
|addmembers||Add or remove members to a group. These can be users, OUs, or another groups.|
The syntax for adding/removing members to/from a group is
groupmod addmembers [-c] group [members] [members...]
Here, group is an object resolver query that returns exactly one group. Refer to Section 13.5. Object Resolver for more information on object resolver queries. If the optional parameter -c is given, the given members are removed instead of added. If no members are given, all members are being deleted from the group member list. Finally, the members list parameters refer to one or more object resolver queries that return a user, a group, or an OU. Usage examples:
Deletes all members from the group with id 123:
groupmod addmembers -c id:Group:123
Deletes one user from the group with id 123:
groupmod addmembers -c id:Group:123 id:User:456
Adds three members (one user, one group, one OU) to the group with id 123:
groupmod addmembers id:Group:123 id:User:456 "hql:from Group where id=789" id:OrganisationalUnit:987