Creating an Archive

When creating a NuoDB database, an archive object must be created first. An archive is a copy of the database stored on disk.

The nuocmd create archive command is used to define an archive. nuocmd create archive provisions an archive without allocating storage space for the archive. The nuocmd create archive command generates an archive ID for the newly created archive object.

For example:

nuocmd create archive --db-name test --server-id nuoadmin1 --archive-path lsa:/var/opt/nuodb/archive/testlsa1
Archive(archive_path=lsa:/var/opt/nuodb/archive/testlsa1, db_name=test, id=0, is_observer=False, observer_storage_groups=[], server_id=nuoadmin1, state=PROVISIONED)

The output shows that a new archive with archive ID 0 was created in the test database, with a path lsa:/var/opt/nuodb/production-archives/hockey. `lsa: indicates the Log-Structured Archive (LSA) type. For more information, see Types of Archives and Archive Paths by Installation Type.