Console Command Freeze Db - aemadrid/orientdb GitHub Wiki
command: FREEZE DATABASE
Freeze database
Flushes all cached content to the disk storage and allows to perform only read commmands. Database will be "frozen" till release database command will not been executed.
This command requires presence of server administration rights and can be executed only on remote DBs. If you would like to freeze/release local DB use methods ODatabase#freeze/ODatabase#release directly from OrientDB API.
This command is very usefull in case you would like to do "live" database backups. You can "freeze" database, do file system snapshot, "release" database, copy snapshot anywhere you want. Using such approach you can perform backup in short term.
Syntax
FREEZE DATABASE
Examples
Freezes the current database:
FREEZE DATABASE
To release database use the Release Database command.
To know more about SQL commands look at SQL commands.
This is a command of the Orient console. To know all the commands go to Console-Commands.