AstroPi3 icon indicating copy to clipboard operation
AstroPi3 copied to clipboard

Backup or Restore not including PHD2

Open oldjiberjaber opened this issue 4 years ago • 2 comments

Only Kstars and Indi are included in the backup and restore script, would be good if it also included PHD2 :) There is an export function in PHD2 (under the /tools/connect equipment menu) but it does not include the darks library in the export (which I think is in a .FIT file (/home/pi/.phd2/darks_defects). Looks like there is a command line option in the windows version of PHD2 to automate the config backup but not for the darks?

oldjiberjaber avatar Apr 26 '20 12:04 oldjiberjaber

Gotcha, well I know how to backup and restore settings for KStars and INDI because I have made lots of contributions to the software. I am not an expert in PHD2, although I certainly use it. We can look into all the files that it stores its settings into and how we could copy them and paste them back. Certainly a good thing to try to include. Thanks for the idea!

rlancaste avatar May 01 '20 21:05 rlancaste

I've moved to Astroberry for now but liked the concept of your script so was trying to use it on there (it fails on lines 11/12 for some reason, but I am no programmer to be able to understand why).... Anyway, I used the concept as the basis for a similar personalised backup script and changed the cp commands to rsync so I could see progress of the copy and also added the following to export and back up the PHD2 settings. It doesn't back up the dark files though and I have not been able to successfully restore a manual copy so far unfortunately!

Just under the backupfoldername creation add the following line: phd2ConfigExportName="PHD2ConfigBackup-$(date '+%d-%m-%Y_%H-%M-%S')"

Then add phd2 --save="$backupFolderName/$phd2ConfigExportName"

I've hard coded my paths for now and this saves the PHD2 settings directly to the back up directory with no intermediate save, copy and then delete of them :)

oldjiberjaber avatar May 11 '20 14:05 oldjiberjaber