You are not logged in.
Pages: 1
Hey everyone, are you all okay? Could you please help me with a question? I'm just a newbie to Arch and the Linux world in general. Could someone show me how to create a script to backup my system configurations, where I can save all my configuration and send it to GitHub?
Offline
https://wiki.archlinux.org/title/System … nce#Backup
where I can save all my configuration and send it to GitHub?
Dotfiles are specifically addressed but don't equate to a "system backup".
nb. that this can expose private data (passwords etc.) to a public platform!
Online
Moving to Newbie Corner.
Offline
Why moving them to github?
trying to sync them? try https://wiki.archlinux.org/title/rsync for each configure file. e.g. /etc/ssh/sshd_config
trying to backup them on cloud? i highly recommend to use https://wiki.archlinux.org/title/btrfs and then use `btrfs send` to write it on a tar file then upload it to google drive. you can use rclone for that.
or wanna to share your configs? then clone a empty repo from github then write a script to copy your config files to your local repo then commit and push them to gh.
but be careful about exposing private data on configure files to public.
Offline
with the encryption/privacy out of the way, on deciding what to back up:
Search the wiki on how to get (A) a list of installed packages. and then get (B) the config files from those packages that are different from the ones in the package. and then get (C) files in /etc that are not in any package (i.e. you added them).
After picking all those, just back up your /home
if you ever need to restore your system, follow the install steps again. Use the list from A in the pacstrap command step. And after pacstrap place all the files from B and C over. And restore your /home.
It should give you the same system. All the steps are documented in the wiki, under the pacman or pacman tips pages. cheers.
Offline
Use the list from A in the pacstrap command step.
How to fetch those list in live Arch iso?
Ukrainian
Offline
Just your config (dotfiles) or packages as well?
There are a lot of people who make a public repo for their dotfiles for others to use, just initialize a git repo in .config and push it to Github, and as others pointed out remember to not expose passwords etc.
Offline
gcb wrote:Use the list from A in the pacstrap command step.
How to fetch those list in live Arch iso?
I just save a txt file with that info on the install media or another pen drive and use it during the install. install your text editor and run commands from scripts you edit during the install etc.
Offline
Pages: 1