unspike

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 16:27

unspike [-<option> . . .]

Un-spikes (un-deletes) objects.

This command is also available in cmd4 as unspike.

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>

Undelete 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:

srv4 unspike -ids 872 -extend story.images

and the command

srv4 unspike -ids 815 -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.

See also

spike