• We did not send an email asking for donations - please read this post.

How to save config files and settings to github, How is it done?

smooth_buddha

Active Member
Joined
Feb 13, 2020
Messages
362
Reaction score
245
Credits
1,648
Hey guys i have a github account and been customizing my Arch and Arco linux, but what im not sure of is how to back up my settings and configs, like which files i should back up. For a while ive kept installing and re-configing which is not efficient and eats up much time!

Is it the .config folder in home directory, is ther also folders and files i have to backup from /etc ???

Then once they are saved i use a git clone to put them back onto a freshly installed system,do the configs just go back into home folder and they should work provided i reinstalled the applications for the configs and settings???? Forgive me if this doesnt make to much sense ive never backed up configs or settings before and would really like to know how its done as this will save me much time having to type out commands and manually re download everytime i do a reinstall. the creator of Arco linux has some "nemesis" scripts which are awesome and we can use a template to add or remove software we want or dont want.
But im not a 100% how this process of backing up configs is done
 


arch151

New Member
Joined
Jun 17, 2021
Messages
18
Reaction score
12
Credits
106
no problem at all, yeah its a lot and I never really started backing up my dots but i might read through it too. if anyone else has suggestions for OP feel free.
 

craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
396
Reaction score
390
Credits
2,739
etckeeper - https://etckeeper.branchable.com
The etckeeper program is a tool to let /etc be stored in a git, mercurial,
brz or darcs repository. It hooks into APT to automatically commit changes
made to /etc during package upgrades. It tracks file metadata that version
control systems do not normally support, but that is important for /etc, such
as the permissions of /etc/shadow. It's quite modular and configurable, while
also being simple to use if you understand the basics of working with version
control.

It is in the Debian repos, not sure about other distros.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top