unspike [-<option> . . .]
Un-spikes (i.e. logical un-deletes) deleted objects.
Options
[-ids] <comma-separated database ids>
Comma-separated id(s) of the object to un-spike
-extend <comma-separated list of attribute types - specified using their full name>
Undeletes also all the objects referenced by the specified ones via these attributes.
It applies to object referenced by the objects being unspiked but also to object referencing the object being unspiked. This means that once both the story 872 and the image 815 of the example above have been deleted the command:
cmd4 unspike -ids 872 -srvname myserver -username myuser -password mypwd -extend story.images
and the command
cmd4 unspike -ids 815 -srvname myserver -username myuser -password mypwd -extend story.images
have the same effect of unspiking both the story 872 and the image 815.
-recurse
When extending the list of objects to be un-deleted to the referenced ones consider also indirect references - up to any depth (i.e. objects referenced by an object that is referenced by an object . . . that is referenced by one of the objects to be deleted)
-unref <comma-separated list of attribute types - specified using their full name>
Eliminate references to deleted or non-existent objects from the objects being unspiked via these attributes
-conditions
Either a GNQuery search expression or the name of the file or of the search configuration containing the search conditions - used to select the objects to undelete. Available since the version 2.0.
-username <string>
The optional user name to use to login into the system. If not specified the Web service login is used. Ignored in interactive mode.
-password <string>
The user password to use to login into the system. Ignored if no system user name is specified. Ignored in interactive mode.
-lang <string>
User-interface language, e.g. 'en-US' for English, US version. Ignored in interactive mode.
-srvname <string>
The name of the Web service connection parameters to use, as defined in the user configuration file (USERCONFIG.XML file, typically stored in C:\Users\<yourWindowsname>\AppData\Roaming\TeraDP\GN4\ on Windows 10 / 8 / 7 / Vista and in c:\Documents and Settings\<user name>\Application Data on Windows XP / Server 2003). If not specified the first connection in the configuration file is used. Ignored in interactive mode.
Notes:
•When using this parameter, have in mind that there is no way to ensure that the same name in the USERCONFIG.XML file gets used coherently on all network computers. Therefore, this is not a safe method unless you are using it only on well known computers.
•Use either -srvname or -srvurl, but not both.
-srvurl <string>
The URL of Web service to connect to, e.g. http://myhost.com/GN4/Adminsrv.asmx. Ignored in interactive mode.
Notes:
•When using this parameter, have in mind that it is independent of the USERCONFIG.XML settings, therefore, much safer.
•Use either -srvname or -srvurl, but not both.
-srvusername <string>
The Windows user name to use to login to the Web service. If not specified the current Windows login is used, and the password and domain options are ignored. Ignored in interactive mode.
-srvpassword <string>
The Windows user password to use to login to the Web service. Ignored ininteractive mode.
-srvdomain <string>
The domain of the user to use to login to the Web service. Ignored in interactive mode.
-srvpassphrase <string>
Pass-phrase used to encrypt/decrypt data transferred to and from the server. Ignored in interactive mode.
See also