We need a way to do a (online) backup to a user defined backup-destination. Maybe in that way:
backupQuery.setParameter("targetfile", new java.io.File("/User/Backup/test.objectdb"));
which should create a backupfile with the name 'test.objectdb" in the directory '/User/Backup/'
or
backupQuery.setParameter("targetdir", new java.io.File("/User/Backup/"));
wich should create a backupfile with the origin name of the database in the directory '/User/Backup/'.
Otherwise we had to do the backup in an empty temp directory, scan the backup directory for a newly created backup database-file (in a subdirectory with date and time information), then move it to the real backup directory and delete the temp backup - directory.
best regards.
Arne