View Single Post
Old 2020-10-07, 06:50   #10
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

5·983 Posts
Default Performing version upgrades

The most efficient method will depend on whether it's a single install or a fleet of them to be upgraded. Each leaves your results files, worktodo, log files, work in progress files, and configuration files in place and undisturbed. (But you should be doing regular system backups anyway.)

Single install:
Stop and exit the prime95 program to allow prime95 program files to be overwritten.
Download the zip file. Unzip it.
If necessary, move the new files into your working directory. Select replace if prompted. Restart the program in the working directory.

Multiple systems, with USB drive:
Download the zip file. Put it onto the USB drive. Unzip it there.
On each system:
Insert the USB stick.
Stop and exit the prime95 program to allow prime95 program files to be overwritten.
Copy the new version's files from the USB stick to the working directory, overwriting the old.
Start the program in the working directory.
"Eject" the USB drive. Its file explorer window will close.
Remove the USB stick.

Multiple systems, with network drive:
Download the zip file. Put it onto the network drive. Unzip it there.
On each system:
In file explorer, navigate to the update version prime95 folder on the network drive.
Stop and exit the prime95 program to allow prime95 program files to be overwritten.
Copy the new version's files from the network folder to the working directory, overwriting the old.
Start the program in the working directory.
Close the file explorer window for the update version folder.

It's possible to streamline the above somewhat with a bit of batch script.

Strictly speaking, it is not necessary to copy and overwrite files that have not changed from the previous version, but it does little harm.
Unneeded copying can be efficiently avoided by date sorting both source and destination folders, and only copying what's newer than the corresponding destination file.

For more detail, quoted with some editing, from S485122 at https://mersenneforum.org/showpost.p...61&postcount=4
prime.txt contains the GIMPS user data,
local.txt contains the machine data,
worktodo.txt contains the current work (assigned or not),
at some times a file named prime.spl which contains the results not yet transmitted to the server might be present,
the work files pnnnnnnn mnnnnnnnn etc and their backup copies .bu, bu2, etc...
None of these files are in the prime95.zip archive and will thus not be overwritten. They are essential for continuity.
There are other user files that are not in the archive either, but they are less critical (results.txt, results.json.txt, prime.log, gwnum.txt, ...)
In other words, keep all other files in the folder, since they contain your user and machine data and preferences, your work in progress and results. The only files overwritten will be the program and version dependent files.


Top of reference tree: https://www.mersenneforum.org/showpo...22&postcount=1

Last fiddled with by kriesel on 2020-11-19 at 22:26
kriesel is online now