Issue #1279: user defined backup file

Type: Feature RequestVersion: 1.4.0Priority: NormalStatus: ClosedReplies: 2

We need a way to do a (online) backup to a user defined backup-destination. Maybe in that way:

backupQuery.setParameter("targetfile", new"/User/Backup/test.objectdb"));

which should create a backupfile with the name 'test.objectdb" in the directory '/User/Backup/'


backupQuery.setParameter("targetdir", new"/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. 



It seems that there is already an undocumented parameter that you can use to replace the date/time pattern with your own selected sub folder name:

    Query backupQuery = em.createQuery("objectdb backup");
    backupQuery.setParameter("target", "/User");
    backupQuery.setParameter("name", "Backup");

This should create a backup file with the original name of the database in the directory '/User/Backup/', as suggested above.

ObjectDB Support


thank you very much