ObjectDB ObjectDB

Issue #1279: user defined backup file

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

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

edit
delete
#2

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");
    backupQuery.getSingleResult();

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

ObjectDB Support
edit
delete
#3

great

thank you very much

Arne

edit
delete

Reply

To post on this website please sign in.