Previous Topic

Next Topic

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:

  • server is the URI of a complete Mulgara server to back up.
  • #model is an individual model to back up (optional).
  • local or remote specifies that the backup file is written locally on the client or remotely on server's filesystem, respectively. If not specified, the default is remote.
  • file is 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>;

See Also

iTQL Commands

alias

comment (#)

commit

create

delete

drop

execute

help

insert

load

quit

restore

rollback

select

set

Open Source logo

© 2001-2004 Tucana Technologies, Inc. Some rights reserved.

© 2006 The Mulgara Project. Some rights reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".