Summary: Copies all objects from the specified source space to the specified destination space.

Syntax

gs> space copy [source-space-url] [destination-space-url] -login

Description

Copies all objects from the specified source space to the specified destination space. Specify the source and destination space URL by simply typing these after the copy command – first the source space, and then the destination space.

The space copy command is relevant only for spaces that are in a started mode.

Options

Option Description Value Format
login Enter a user name and password for a secured space in runtime mode. USER1 PASS1
u1 Sets a user name for source secured space. -u1 USER1
u2 Sets a user name for a source destination space. -u2 USER2
p1 Sets a password for a source secured space. -p1 PASS1
p2 Sets a password for a destination secured space. -p2 PASS2
help \ h Prints help – the command's usage and options.  

Example

Copies all objects from a source space named spaceSource to a destination space named spaceDest:

space copy jini://localhost/spaceSource jini://localhost/spaceDest

Copies all objects from a source secured space named spaceSource to a destination secured space named spaceDest, using the user USER1 and password PASS1 for the source space, and the user USER2 and password PASS2 for the destination space:

space copy copy jini://localhost/spaceSource jini://localhost/spaceDest -u1 USER1 -p1 PASS1 -u2 USER2 -p2 PASS2
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence