Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup or Restore not including PHD2 #14

Open
oldjiberjaber opened this issue Apr 26, 2020 · 2 comments
Open

Backup or Restore not including PHD2 #14

oldjiberjaber opened this issue Apr 26, 2020 · 2 comments

Comments

@oldjiberjaber
Copy link

oldjiberjaber commented Apr 26, 2020

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?

@rlancaste
Copy link
Owner

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!

@oldjiberjaber
Copy link
Author

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants