Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
save my dotfiles on github, an installation script as well. To restore, just one command like installing oh-my-zsh. The script supports to restore different dotfile depends on different OS and ENV.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
You made me look for it .
On my system there is no need for special treatment: I do backups with backintime of my /home directory including any .files (backintime is a frontend for rsync) and openSUSE takes btrfs-snapshots every time the system is touched -- so, everything is cared for and I never even noticed. HTH.
I don't do anything special for dot files. I backup (rsync) nightly all my working disk to a spare disk. When (every few years !) I update hardware and OS, I take care of copying them one by one to the new system (those which I have personally edited and I want to continue doing what I wanted ... for the others added by una tantum applications I just forget and let them be recreated).
Of course I tend to avoid creating real working files in the home directory directly, so it should contain only dot files and subdirectories.
Like others, I have no special treatment for dot files.
My home directory is backed up weekly on a file-by-file and partition basis to external media.
If I'm reinstalling from scratch then it tends to be a major version upgrade and so I reinstall everything from scratch (although with my diverse configurations, this may take several hours). The backups are only there for file(s)/partition rollback in case of problems.
Distribution: Deb, Mint, Slack, LFS, Fedora, Ubuntu(LXDE)
Posts: 71
Rep:
One thing I hadn't mentioned previously is -
I've written script files to modify/install various dot file customizations for the rare occurrence of a fresh install. These are maintained on several systems so they are always available as needed.
It also serves as a handy reference for the changes I've made.
My own question, and the bigger question i see behind most answers here, is:
What are dotfiles actually? (and p-lease not the literal definition)
why would i treat a particular subset of files differently?
isn't it much more important to define which files - once i know that for sure, the method of controling them should be much easier to settle on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.