Provision an Archive
Data in a database is stored in one or more archives. To provision an archive, specify the database, server ID, and the archive location.
For example:
nuocmd create archive --db-name test --server-id nuoadmin1 --archive-path lsa:/var/opt/nuodb/new_archive
Archive(archive_path=lsa:/var/opt/nuodb/new_archive, db_name=test, id=6, is_observer=False, observer_storage_groups=[], server_id=nuoadmin1, state=PROVISIONED)
The output shows that the archive of type lsa
, with archive path /var/opt/nuodb/archive/testlsa1
, is PROVISIONED
for the database test
.
nuocmd create archive
provisions an archive and creates the archive object.
This means that only the information about the type of the archive and the archive path to store the database is stored in the domain.
The directory on disk, which is specified as part of the object location relative to the server-id
, is not yet created.
The archive directory on disk is created and initialized when an SM is first started on it.
To provision an archive from backup, see Restore Data From Backup Sets.