forked from orientechnologies/orientdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Console Command Export
lvca edited this page Dec 22, 2012
·
3 revisions
Export the current opened database to a file. The exported file is in JSON format using the Export-Format. By default the file is compressed using the GZIP algorithm. The Export/Import commands allow to migrate between engine releases without loosing data. If you receive an error about the database version, export the database using the same version of OrientDB that has generated the database.
Then Import it with the new one. The database will be imported and will be ready to be used.
export database <output-file>
Where:
- output-file Output file path
orientdb> export database C:\temp\petshop.export
Exporting current database to: C:\temp\petshop.export...
Exporting database info...OK
Exporting dictionary...OK
Exporting schema...OK
Exporting clusters...
- Exporting cluster 'metadata' (records=11) -> ...........OK
- Exporting cluster 'index' (records=0) -> OK
- Exporting cluster 'default' (records=779) -> OK
- Exporting cluster 'csv' (records=1000) -> OK
- Exporting cluster 'binary' (records=1001) -> OK
- Exporting cluster 'person' (records=7) -> OK
- Exporting cluster 'animal' (records=5) -> OK
- Exporting cluster 'animalrace' (records=0) -> OK
- Exporting cluster 'animaltype' (records=1) -> OK
- Exporting cluster 'orderitem' (records=0) -> OK
- Exporting cluster 'order' (records=0) -> OK
- Exporting cluster 'city' (records=3) -> OK
Export of database completed.
This is a command of the Orient console. To know all the commands go to Console-Commands.