Wrong file format backup

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
jonathanlemaire
Posts: 4
Joined: Tue Jan 07, 2014 1:33 pm

Wrong file format backup

Post by jonathanlemaire »

I am trying to restore a backup file made by the backup system of Hoteldruid.
But i get the error wrong file format when i do so, does anybody has a clue what could cause this problem?
I use the file hoteld_backup.php in the dati folder.
barcelonadruid
Posts: 2
Joined: Mon Jan 20, 2014 1:41 am

Re: Wrong file format backup

Post by barcelonadruid »

Hello,
i'm quite new to HotelDruid so i can't tell you why it did it.

But maybe there is a chance that you can manually restore the data from the corrupt file you mention

This data files are plain text, so usually a corrupted file means an incomplete file: if you are lucky enough you might have all important data inside the file

My advice is that you try to download the file to your PC, and try to open it with Wordpad or Write
You should see the CREATE commands and the INSERT commands
If you do, you just need to use PHPMYADMIN in order to delete your tables and run the SQL commands from the file

Please let me know if you need further help

All the best
R.
bluealmondhostel
Posts: 64
Joined: Tue Sep 21, 2010 5:51 pm

Re: Wrong file format backup

Post by bluealmondhostel »

once a backup is corrupt, is kind of hard to fix it.
I ran into a similar problem while doing a migration.

The best way is to do a migration of the actual database, forget the files.

here's how i did it.
viewtopic.php?f=1&t=3481&sid=f355339c6d ... ad56bd7964
djct101
Posts: 9
Joined: Sun Feb 16, 2014 10:34 am

Re: Wrong file format backup

Post by djct101 »

The backup system doesnt work for me - any time I try to restore one it says its the wrong file format. I think the problem is that there's an error somewhere else in the restore dialogue but that the only error message is the 'wrong file format' one, since you can enter anything or nothing in the dialogue boxes and still get the same error!
djct101
Posts: 9
Joined: Sun Feb 16, 2014 10:34 am

Re: Wrong file format backup

Post by djct101 »

Would be really nice to see something from Marco here on why the backup system doesnt work.....
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: Wrong file format backup

Post by marco »

There was a bug in 2.0.3 when restoring a backup with custom names for the rental unit (not "room" or "apartment"). If this is the case try upgrading to hoteldruid 2.1.

Regards,
Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply