Looking to do fresh install of 5.x over broken 4.x, and save/restore settings -- help?

I am (was) running 4.4, and ssh'd into my pi-hole to update. Ran pihole -up and it gave me an error. I apologize that I didn't copy these down. I attempted to reboot, but it never came back up. I pulled the power cable and reconnected. At that point, it did come back up, but now it is confused about what version it is running, and the update command now gives me an error about basic-install.sh missing, and in fact, my /etc/.pihole directory is empty. I tried to run

sudo git clone GitHub - pi-hole/pi-hole: A black hole for Internet advertisements /etc/.pihole

to re-populate it but that yields this error:

fatal: unable to find remote helper for 'https'

So at this point, I'd like to somehow (as quickly as possible!) get a fresh copy of the current 5.x version installed, and be able to restore my settings from 4.x onto it. I was able to use the teleport export in the web UI and it did download a tar.gz file, so I think/hope I have my current settings saved that way.

I guess that most of pi-hole is working, including the web UI, and presumably most of the linux install it's built on. How do I go from a seemingly working linux install to getting the current pi-hole running on it, and the old version deleted? Presumably at that point I can use teleport to restore all my settings?

Thanks for any help!

Expected Behaviour:

update completes without error

Actual Behaviour:

update gives an error about basic-install.sh missing

Debug Token:

It failed uploading. I can probably manually upload if needed/desired.

Run the install script

https://docs.pi-hole.net/main/basic-install/

Thanks. Was hoping for a little more detail. Tried this, and got yet another error:

Unable to clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole : Directory already exists

So I tried installing git with apt, and that seemed to work. I was then able to execute the git clone command successfully, and then pihole -up was able to run to completion.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.