September 8, 20223 yr I have a few github repo in my unraid server, and it'd be convenient if I can push updates to github from my server directly. However, whenever my server reboot, my git config would disappear. Specifically, if I run in the terminal that git config --list The output would be byte 0/0 (END) This would happen whenever I reboot/shutdown my server, even though I just edited the config right before shutdown. Is there anything I can do to stop my git config from disappearing after reboot?
October 27, 20223 yr When you change git config, it only changes it in the OS which is in RAM. Not sure how to have this kept between reboots. Was thinking of using a git container and using that instead of using built in git.
October 27, 20223 yr Community Expert On 9/8/2022 at 4:58 AM, Qichen said: I have a few github repo in my unraid server, and it'd be convenient if I can push updates to github from my server directly. However, whenever my server reboot, my git config would disappear. Specifically, if I run in the terminal that git config --list The output would be byte 0/0 (END) This would happen whenever I reboot/shutdown my server, even though I just edited the config right before shutdown. Is there anything I can do to stop my git config from disappearing after reboot? Unraid is running from RAM so anything that is not on persistent storage gets lost. For what you want you need to make a copy of the relevant files to the flash drive and then re-instate them on reboot either by entries in the config/go file on the flash or by running a script on first array start via the User Script plugin. It might be possible to use a symlink to the flash copy to make updates automatically get saved there.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.