Igal, thanks !
Afffsss....Not supported online backup??, so how to I will make backup
to my system ???
I am starting h2 database inside my app.
[code]
//begin h2 server
public static void main(String[] args{
Server s = Server.createTcpServer(new String[]{"-tcp","-
tcpAllowOthers","-tcpPort","9001","-trace"});
s.start();//starting h2 server
//backup
String[] bkp = {"-url",
"jdbc:h2:tcp://localhost:9001/db/mydb",
"-user",
"sa",
"-password",
"123",
"-script",
"/MyApp/backup/myapp.zip"};
org.h2.tools.Script.main(bkp);//backup
}
[/code]
What is this: "except if the file systems support creating
snapshots" ????
thanks.
On 26 nov, 23:09, Igal <[email protected]> wrote:
> according to the docs
> athttp://www.h2database.com/html/tutorial.html#upgrade_backup_restore:
> "The Backup tool (org.h2.tools.Backup) can not be used to create a online
> backup; the database must not be in use while running this program."
>
> to Backup an "open" database you should use the SQL Command: Backup
>
> BACKUP TO 'backup.zip'
>
> maybe that's the reason for the corrupt zip file?
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.