Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » Backup your VM!
Backup your VM! Wed, 07 September 2011 10:08 Go to next message
BeeKeeper is currently offline BeeKeeper

 
Officer Cadet 1st Year

Messages: 214
Registered: December 2007
Location: Devon, UK, GMT
While AH is unwell it seems a timely moment to speak about my own Stars! related technical problems recently.

Like a few others I run Stars! on the Virtual XP machine which can be run on some versions of Windows 7.

I run a daily backup to an external hard drive every day and thought I was fairly secure against loss of data - until I found out the opposite!

After a power outage my PC was left a bit fragile with hard disks vanishing and then re-appearing (sometimes) when the PC was re-booted. After a bit of head scratching a possible solution was to reload the BIOS as the problem seemed to be related to SATA drivers. Like a good boy I updated to the latest BIOS version and all seemed fine with all hard disks showing - then I tried to start the virtual machine. It would not start and moaned about a major hardware change and a new processor. The new BIOS seemed to be the cause as it was a major upgrade to the old one with the ability to unlock the hidden cores on the AMD chip. I had not tried that but still the VM refused to start. I tried installing the old BIOS but the system would not let me, even when done in DOS with the setup program.

There seemed no option but to re-install the VM but to do this I had to uninstall the old one and that, it said, would mean the loss of all data.

I had previously thought the files I could see in XP mode were somewhere on my PC, just well hidden. This is not the case. All the files you can see on the XP C:\ drive are stored in a .vhd file - a virtual hard disk. There may be ways to access these but it was not obvious to me so I went ahead and re-installed the VM and it fired up first time. I re-installed Stars! and all now works.

The lesson for me is not to rely on the Windows 7 backup to keep your Stars! files safe. I have now set up a scheduled backup in the virtual XP mode to do a daily backup of my Stars! files onto one of the PC's hard drives. This is working well and the files are in a recognisable format and are now backed up in turn by the Windows 7 backup program.

Many thanks to Void, Altruist and ManicLurich for their kind help in showing me how to re-create my .h files, which for those who don't know (I didn't) are not held on AH, only on your PC, so if you lose them the only way to recover them is to effectively start the game again, reloading your .m file each time for every year of the game. Altruist has a vbs file which automates the process and this worked well for me, but it was still a few hours work to get it all sorted out.

There may have been a simpler way to recover my data, only later did I consider trying to copy the .vhd file across from the Windows backup. If it all falls over again I may try that, but with a daily backup of Stars! files I should now be safe.




Report message to a moderator

Re: Backup your VM! Wed, 07 September 2011 10:31 Go to previous messageGo to next message
LittleEddie is currently offline LittleEddie

 
Lieutenant
Helped track down one or more Stars bugs

Messages: 517
Registered: February 2011
Location: Delaware
I use about the same setup, what I've found is

1. You can copy the Directory of you virtual machine, mine are in ...My Documents/My Virtual Machine... It contains two files, the '.VMC' and '.VHD'. one is the settings and the other is the hard drive.

With this you can.

a. Back it up

b. Copy it and rename it. Then open the .VMC file and it will open in a Virtual Machine with the new name. I have 5 Vmachines running on my computer right now. This is a fast way to set up a new machine.

2. All my Stars files are in my DropBox folder. so I can see them from any of my Vmachines and in Win7. Plus they are on my other computers as a backup since all my DropBoxes are updated automatic.

this way I can save a .P file in XP and open it in Open Office in Win7 without having to move it. Plus I can open last years turn in one Vmachine and compare it to the current turn in another Vmachine.

It works for me

Ed


[Updated on: Wed, 07 September 2011 10:32]

Report message to a moderator

Re: Backup your VM! Wed, 07 September 2011 13:32 Go to previous messageGo to next message
craebild is currently offline craebild

 
Lieutenant

Messages: 568
Registered: December 2003
Location: Copenhagen, Denmark
Another option for getting lost .H# files is to contact the host or arbitrator. The host if non-playing host, the arbitrator if the host is playing, of course.

Some hosts ensure that they have up to date .H# files for all races (I do), and if the host is playing, then the arbitrator might be keeping up to date .H# files.



Med venlig hilsen / Best regards / Mit freundlichen Grüßen
Christian Ræbild / Christian Raebild

Report message to a moderator

Re: Backup your VM! Thu, 08 September 2011 23:26 Go to previous messageGo to next message
Void is currently offline Void

 
Ensign

Messages: 369
Registered: January 2011
Location: California, GMT -7
craebild wrote on Wed, 07 September 2011 10:32

Some hosts ensure that they have up to date .H# files for all races (I do), and if the host is playing, then the arbitrator might be keeping up to date .H# files.

How do you do this? (1) Load up each turn file to keep the H file up to date? (2) Ask the player to send the H file every 'x' years? or (3) something else?

Cheers,
Void

Report message to a moderator

Re: Backup your VM! Fri, 09 September 2011 11:52 Go to previous messageGo to next message
craebild is currently offline craebild

 
Lieutenant

Messages: 568
Registered: December 2003
Location: Copenhagen, Denmark
Void wrote on Fri, 09 September 2011 05:26

craebild wrote on Wed, 07 September 2011 10:32

Some hosts ensure that they have up to date .H# files for all races (I do), and if the host is playing, then the arbitrator might be keeping up to date .H# files.

How do you do this? (1) Load up each turn file to keep the H file up to date? (2) Ask the player to send the H file every 'x' years? or (3) something else?

Cheers,
Void

I load the turn files to keep the H files up to date. I use a batch file for opening the turn files, so I don't have to remember and type in the passwords.



Med venlig hilsen / Best regards / Mit freundlichen Grüßen
Christian Ræbild / Christian Raebild

Report message to a moderator

Re: Backup your VM! Fri, 09 September 2011 20:40 Go to previous messageGo to next message
goober is currently offline goober

 
Chief Warrant Officer 3

Messages: 175
Registered: December 2003
Location: +10
craebild wrote on Sat, 10 September 2011 01:52

Void wrote on Fri, 09 September 2011 05:26

craebild wrote on Wed, 07 September 2011 10:32

Some hosts ensure that they have up to date .H# files for all races (I do), and if the host is playing, then the arbitrator might be keeping up to date .H# files.

How do you do this? (1) Load up each turn file to keep the H file up to date? (2) Ask the player to send the H file every 'x' years? or (3) something else?

Cheers,
Void

I load the turn files to keep the H files up to date. I use a batch file for opening the turn files, so I don't have to remember and type in the passwords.


Perhaps AH Client could do that too. Set it up to download all the players tun files. IIRC it automatically opens and saves the games when you do this.




Goober.

Report message to a moderator

Re: Backup your VM! Sun, 11 September 2011 06:00 Go to previous messageGo to next message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

goober wrote on Sat, 10 September 2011 12:40

Perhaps AH Client could do that too. Set it up to download all the players tun files. IIRC it automatically opens and saves the games when you do this.

When hosting, I use AHClient for this. You have to open each player's file (and save a .x?) to keep the .h file current however which I generally don't bother with.

Report message to a moderator

Re: Backup your VM! Sun, 11 September 2011 06:16 Go to previous messageGo to next message
goober is currently offline goober

 
Chief Warrant Officer 3

Messages: 175
Registered: December 2003
Location: +10
gible wrote on Sun, 11 September 2011 20:00

goober wrote on Sat, 10 September 2011 12:40

Perhaps AH Client could do that too. Set it up to download all the players tun files. IIRC it automatically opens and saves the games when you do this.

When hosting, I use AHClient for this. You have to open each player's file (and save a .x?) to keep the .h file current however which I generally don't bother with.



Just set up AHClient to check what it does.

It saves back ups of m, p anf f files (it has to open up the game to accomplish the latter 2) for each player but doesn't save after opening, so no x file is generated. That would be a nice addition to AHC for any hosts out there.



Goober.

Report message to a moderator

Re: Backup your VM! Sun, 11 September 2011 19:46 Go to previous message
gible

 
Commander

Messages: 1343
Registered: November 2002
Location: Wellington, New Zealand

goober wrote on Sun, 11 September 2011 22:16

Just set up AHClient to check what it does.

It saves back ups of m, p anf f files (it has to open up the game to accomplish the latter 2) for each player but doesn't save after opening, so no x file is generated. That would be a nice addition to AHC for any hosts out there.

Not quite...it uses the command-line switches to generate the p and f files - the turn isn't properly opened. I can't remember the exact behaviour with x files...I do remember modifying the x file behaviour and compiling it myself but I can't remember if those changes were "released". JCH might remember...or if anyone really wants to know I can have a poke and diff my source code.

Report message to a moderator

Previous Topic: Anyone fancy a fast, no diplomacy game?
Next Topic: knife fight in a post box
Goto Forum:
  


Current Time: Thu May 02 01:50:25 EDT 2024