Solved Git not part of admin backup? (And how to go about it.)

Daniel-Doggy

Verified User
Joined
Nov 16, 2019
Messages
460
Hello everyone,

I am currently changing my backend hostnames on all my DirectAdmin servers and thus need to reinstall DirectAdmin. (As in my experience this is the best way to do a hostname change.)

Before I reinstalled DirectAdmin, I created a admin backup with my users in it so that I could quickly restore the backups after everything is configured.
I noticed however that after restoring the admin backup, all the repositories in Git where gone. (I assume the Git integration is not part of the admin backup data?)

And given that all the .git folders are still present, I am wondering if I can just create the Git repositories with the same setting as before the reinstall and it being fine? Or do I need to cleanup some files and folders first? (As I do not know if the Git integration likes already existing git data?)
 
Can't answer the question about Git, but aren't you hitting a nail with a sledgehammer by reinstalling DA on servers just for a hostname change?

I've changed hostnames before and it was simply change the hostname in /etc/hostname and /etc/hosts followed by the hostname in the Admin settings in DA. you may also have hostname in local/directadmin/custombuild/options.conf (redirect_host="hostname"). Once done, add the FQDN A record for the server's new hostname in your domain's DNS, reissue the TLS certificate and that should be it. Probably a lot quicker than a reinstall and rebuild.
 
Can't answer the question about Git, but aren't you hitting a nail with a sledgehammer by reinstalling DA on servers just for a hostname change?

I've changed hostnames before and it was simply change the hostname in /etc/hostname and /etc/hosts followed by the hostname in the Admin settings in DA. you may also have hostname in local/directadmin/custombuild/options.conf (redirect_host="hostname"). Once done, add the FQDN A record for the server's new hostname in your domain's DNS, reissue the TLS certificate and that should be it. Probably a lot quicker than a reinstall and rebuild.
I get your point but for me backup and reinstall is just two clicks.
I have completely automated the installer and thus do not need to do anything.
And with the risk of forgetting something, it is just easier for me to reinstall.
 
I get your point but for me backup and reinstall is just two clicks.
I have completely automated the installer and thus do not need to do anything.
And with the risk of forgetting something, it is just easier for me to reinstall.
Fair comment, and if it's all scripted and works, seems like a fair setup. I was just thinking about the time it takes to reinstall your server software and all ancillary apps, especially if you have quite a few servers to reconfigure, might've been quicker to maybe script the server hostname changes. Good luck though, hope it all goes well. 👌 Will watch this thread as I don't use Git much, but always up to learn new facets of DA for future use.
 
@Daniel-Doggy, the git repositories in the UI should be restored from the backup. It works as expected on our test severs.

It would be best if you could open a support ticket for this issue so we could check why it was not restored on your server.
 
Sorry this was my bad.
I just logged in as a user (instead of inpersonating via admin) and now the entries are shown for Git.

So they are part of the backups. :)
But seems like it may take a little bit before it shows up after restore. (But thats on me,)
 
Back
Top