H2 Database - Backup




H2 Database - Backup

BACKUP is the command used to take database backup into a separate .zip file. Objects are not locked, and when it takes backup the transaction log is also copied. Admin rights are required to execute this command.

Syntax

Following is the generic syntax of the Backup command.

BACKUP TO fileNameString;

Example

In this example, let us take a backup of the current database into backup.zip file. Use the following command for the same.

BACKUP TO 'backup.zip';

On executing the above command, you will get the backup.zip file in your local file system.



Frequently Asked Questions

+
Ans: H2 Database - Delete view more..
+
Ans: H2 Database - Update view more..
+
Ans: H2 Database - Insert view more..
+
Ans: H2 Database - Backup view more..
+
Ans: H2 Database - Call view more..
+
Ans: H2 Database - Explain view more..
+
Ans: H2 Database - Merge view more..
+
Ans: H2 Database - Show view more..
+
Ans: H2 Database - Create view more..
+
Ans: H2 Database - Alter view more..
+
Ans: H2 Database - Drop view more..
+
Ans: H2 Database - Truncate view more..
+
Ans: H2 Database - Commit view more..
+
Ans: H2 Database - Grant view more..
+
Ans: H2 Database - Savepoint view more..
+
Ans: H2 Database - Rollback view more..
+
Ans: H2 Database - JDBC Connection view more..




Rating - NAN/5
526 views

Advertisements