PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → HFCS Restore to different Database same server
HFCS Restore to different Database same server
Iniciado por guest, 24,jul. 2015 09:36 - 3 respuestas
Publicado el 24,julio 2015 - 09:36
HI,

Using HFCS Control Center V19, is there a way to restore a backup to the same server it was taken on but into a different database?
Publicado el 24,julio 2015 - 12:37
Hi

I haven't tried but -MAYBE- this could work...

If I'm not mistaken a backup from HFSQL is basically a set of regular HF classic files + a header directory with a "backup file" containing the information about the bakcup itself, in particular the name of the DB...

So, either this file is in text and you can change the name of the DB, -OR- you can just take all the HF classic files from inside there, move them where there is no bakcup header directory, and then "restore/import from a HF classic DB" in a the HFSQL control center

Best regards
Publicado el 24,julio 2015 - 13:13
Hi Fabrice,

I gave it a go and it seems to have worked perfectly. I changed the database parameter in the backup.info file, but it appears you also need to change the name the folder containing the HF classic files; it seems this has to be the same as the .info file database name.

Thanks for the help!
Publicado el 25,julio 2015 - 09:28
Hi,

Yep that is how it works. use it all the time

regards

Allard