Migrate Pi-Hole installation - install older version

pihole -r uses the basic-install.sh in /etc/.pihole/

And for pihole -r, you need to do mostly the same adjustments to the basic-install.sh you did for the install, but adjust the update_repo function instead of make_repo. They are however identical in the relevant 2nd half. After the repair, the adjustments are however lost ... yeah it is not that optimal. If you really want to use Pi-hole v5 longer, easier would be probably to create a fork, change and use the v5.18.4 tag to contain the needed changes to pull from that repo and tag in any case. So pihole -r does not revert changes, and you can redo the setup any time.

Yes figured that out meanwhile, just a few minutes ago.

Basically using the same basic-install.sh script at /etc/.pihole is fine as the content is completely identical.

Important thing is: during running pihole -r, the script gets pulled again and therefore is the default version again. Luckily (for no reason as my OS is supported) running pihole -r for a 2nd time got stuck at the OS check level (I have the skip os check option set to true in my custom basic-install.sh).

Unfortunately, even running pihole -r did not solve my remaining issue (Conflict with other webservices running on Pi (Ports 80 and 443) - #73 by bcutter)
--> edit: web interface IP binding issue solved now :white_check_mark:

Everything should work now. Tested the whole migration while keeping a specific (latest v5) Pi-Hole version as well as the specific network interface setup. Even the LTS are there (in the 2nd attempt, forgot to stop pihole-FTL on the old host when copying the data(base)), database integrity confirmed with an ok result from sudo service pihole-FTL stop; sqlite3 /etc/pihole/pihole-FTL.db "PRAGMA integrity_check; sudo service pihole-FTL start; pihole status and all graphs etc. are there.

Final productive migration in a few days. So far: thank you very very much!

Productive migration done already a while ago. No further surprises. Thanks.

1 Like

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