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.
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.
Dot files contain config info for games and software. It's very handy to keep them as it means you will not have to re-configure your favorite programs again if you do a fresh install.
Last edited by linustalman; 09-07-2017 at 12:38 PM.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Rep:
Quote:
Originally Posted by linustalman
Dot files contain config info for games and software. It's very handy to keep them as it means you will not have to re-configure your favorite programs again if you do a fresh install.
That would require to know for every program you use where in the file tree the dotfile is kept. Not to mention the fact that there are also *.config or *.conf or even entire subdirectories scattered all over the place. No, as long as there is no mandatory place (and structure) for these files the case is hopeless.
I use git. From there, adding in shell or bash script makes it a snap.
A few weeks ago, I was happy with GNU Stow, but we're on the outs right now. No big problems, I just think that it solves a specific problem and if your situation is larger than that it makes sense to use or roll your own tool.
Quote:
Originally Posted by JZL240I-U
That would require to know for every program you use where in the file tree the dotfile is kept. Not to mention the fact that there are also *.config or *.conf or even entire subdirectories scattered all over the place. No, as long as there is no mandatory place (and structure) for these files the case is hopeless.
I've found it easy to figure out where each of 12 'dotfiles' ought to go according to documentation. If the docs are wrong the source is always authoritative. Somehow I'll survive.
That would require to know for every program you use where in the file tree the dotfile is kept. Not to mention the fact that there are also *.config or *.conf or even entire subdirectories scattered all over the place. No, as long as there is no mandatory place (and structure) for these files the case is hopeless.
You can steadily build up a list of the config files you'd want to keep - you may only want to keep a handful. It's far from hopeless but it is tedious. It'd be handy if there was a program that could make it easier to do this.
I have three systems on my main machine, so I have a common data partition mounted on /home/data. All my $HOMEs are simple directories on the root partitions. The only permanent files they contain are the dot files and directories. They get dumped with the root partition after every update (weekly for Crux, monthly for Debian, once after completion for LFS).
Assuming by "dot files", you mean files in my /home directory. My entire /home/user gets rsync'd to my NAS at least once a day. On Linux, nothing in the OS except for root's .bashrc gets backed up because I don't customize anything in the OS, except for sshd_config. On FreeBSD, I do backup /boot/loader.conf, /etc/rc.conf, /etc/sysctl.conf and my specialized devfs rules, plus my user's /home, if I happen to be using it as a desktop.
I never back up the OS (desktop use case) because it is faster and easier to reinstall. FreeBSD takes me about 10 minutes to install and Linux about the same depending on the distro of the week I happen to be using.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.