backup
Directs a Mulgara server to write out a backup file that can later be restored. The general syntax is as follows:
backup server[#model] to [local|remote] file;
Where:
serveris the URI of a complete Mulgara server to back up.#modelis an individual model to back up (optional).localorremotespecifies that the backup file is written locally on the client or remotely on server's filesystem, respectively. If not specified, the default isremote.fileis the URI of the backup file.
Note - Backups of individual models are written in RDF format while servers are written in a modified compressed (gzip) N3 format. This is because groups of models cannot be represented in RDF.
For example:
backup <rmi://mysite.com/server1> to <file:/tmp/serverbackup.gz>;
and
backup <rmi://mysite.com/server1> to remote <file:/tmp/serverbackup.gz>;
are equivalent. Both commands write the server backup file remotely on the server's filesystem.
backup <rmi://mysite.com/server1#mymodel> to local <file:/tmp/modelbackup.rdf>;
writes the model backup file locally on the client.
Use the restore command to restore server backups and use the create and load commands to restore model backups.
For example:
create <rmi://mysite.com/server1#newmodel>;
load <file:/tmp/modelbackup.rdf> into <rmi://mysite.com/server1#newmodel>;

