There is a template for a sample script in %DM_HOME%\install\DBA\dump_template.bat ($DM_HOME/install/DBA/dump_template.api ).
The script below has the following characteristics:
It does not copy content files into the dump file.
It only dumps ACLs associated with a dumped object.
It does not dump subtype definitions if there are no objects of that subtype.
It does not dump storage area definitions if the dump does not include any content associated with the storage area.
It does not dump user-defined subtypes that have no supertype.
It does not dump job objects.
It is not restartable.
The script assumes that you want to dump all instances of the types, not just a subset. Consequently, the predicates are set as 1=1 (you cannot leave them blank). If you want to dump only some subset of objects or want to include all ACLs, type definitions, or storage area definitions, modify the script accordingly.
Here is the script:
create,c,dm_dump_record set,c,l,file_name dump file name# Supply your own file name. # This must be a new file append,c,l,type dm_sysobject append,c,l,predicate 1=1 append,c,l,type dm_assembly append,c,l,predicate 1=1 append,c,l,type dm_format append,c,l,predicate 1=1 append,c,l,type dm_user append,c,l,predicate 1=1 append,c,l,type dm_group append,c,l,predicate 1=1 append,c,l,type dmi_queue_item append,c,l,predicate 1=1 append,c,l,type dmi_registry append,c,l,predicate 1=1 append,c,l,type dm_relation append,c,l,predicate 1=1 append,c,l,type dm_relation_type append,c,l,predicate 1=1 append,c,l,type dmr_containment append,c,l,predicate 1=1 append,c,l,type dmr_content append,c,l,predicate 1=1 append,c,l,dump_parameter cache_size=60 #set cache size append,c,l,dump_parameter restartable=F #non-restartable dump append,c,l,predicate 1=1 save,c,l getmessage,c
Notes:
In the append command line, the l is the lowercase letter L.
If you do not set the file_name property to a full path, Content Server assumes the path is relative to the root directory of the server. The filename must be unique within its directory. This means that after a successful load operation using the dump file, you must move the dump file to archival storage or destroy it so that you can successfully execute the script later.
To dump user-defined types that have no supertype, add Append methods for each to the script:
append,c,l,type
your_type_name
append,c,l,predicate
1=1