×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

AstroPi3 Scripts revised

  • Posts: 1067
  • Thank you received: 140

Replied by AstroNerd on topic AstroPi3 Scripts revised



Yes, those are the commands in the script...
4 years 4 months ago #46502

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

Replied by AstroNerd on topic AstroPi3 Scripts revised

Ok, so I figured out the issue
When the backup is performed all the data is backed up into two folders “indiConfig” “KstarsData” and one “Kstarsrc” file, And these are in another folder with time and date stamp..
Now when you do the restore, and point to the time and date stamped folder, it’s just copying the whole folders into the destination folder, instead of overwriting the individual files, so for instance in my KstarsData folder I have all the original files, plus another folder called KstarsDat with all the new files inside...
Hope that makes sense...
Olly
4 years 4 months ago #46516

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

Replied by AstroNerd on topic AstroPi3 Scripts revised

I see the problem is just in the restore side of the script, it seems to go one step to far in the destination folder location, if it was one step back and it copied the whole folder it would work...so instead of being restored to
.local/share/Kstars/KstarsData

It should be just

.local/share/Kstars
As the destination, then copying the whole folder will just overtire the existing one...
4 years 4 months ago #46518

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
Just one comment to that: the Linux operating system is case sensitive so a directory called Kstars is a different directory than one called kstars. The correct path therefore is

.local/share/kstars

all lower case.

EDIT: I now see that Rob's comments indeed use the correct lower case path.


Clear skies, Wouter
Last edit: 4 years 4 months ago by Wouter van Reeven.
4 years 4 months ago #46519

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
Ok, I can take a look at correcting the path later today.
The following user(s) said Thank You: AstroNerd
4 years 4 months ago #46520

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

Replied by AstroNerd on topic AstroPi3 Scripts revised


Well I used his script....!!
Ignore what I wrote above was just giving an example...
4 years 4 months ago #46521

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420

I didn't mean in an accusatory way. However people with a similar issue may find these comments and may therefore need to know the exact and correct path. No offense meant!


Wouter
The following user(s) said Thank You: AstroNerd
Last edit: 4 years 4 months ago by Wouter van Reeven.
4 years 4 months ago #46522

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

Replied by AstroNerd on topic AstroPi3 Scripts revised


Sorry I did not mean to sound annoyed, was not at all, its all good... :) :)
4 years 4 months ago #46524

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
Ok I just pushed a change to the repo. Can you see if this works better?

So the issue was that the code that I wrote worked great as long as the kstars and indi directories didn't exist, but if they did, it got put into sub directories.
4 years 4 months ago #46532

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

Replied by AstroNerd on topic AstroPi3 Scripts revised


No, it’s just putting the complete saved folder in the restore folder, instead of just replacing the files with the new ones...
Basically doing the same as before....
The script is asking to save the KstarsData, and then it’s putting that complete folder into the folder specified in the restore section...

Not sure if I am making sense...
4 years 4 months ago #46533

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
Ok I just went back to the old command but added a delete first. Please try it again, thanks.
4 years 4 months ago #46536

Please Log in or Create an account to join the conversation.

  • Posts: 1067
  • Thank you received: 140

Replied by AstroNerd on topic AstroPi3 Scripts revised


It’s deleting the “Kstars” folder and creating one called KstarsData...so my system is a bit messed up, so cant do any more testing until I sort... :(
Thanks for trying to sort this.. :)

I don’t think deleting the folder first is the right Approach..but then what do I know... :) I couldn’t do what you do.
So for now I will just manually copy the files over...
4 years 4 months ago #46537

Please Log in or Create an account to join the conversation.

Time to create page: 0.386 seconds