Anybody have a solution for dotfiles outside /home
on gentoo for example I have accrued a few files under /etc/portage
that to my knowledge just have to live there...
right now I basically rely on my backups for this. but maybe somebody knows a clever way to handle this?
like this
don't like this
palordrolap
in reply to gkpy • • •Seems like an odd software choice to create actual dotfiles under /etc. Often files there have much the same name as a user's dotfiles but without the dot. Thinking of things like /etc/profile vs ~/.profile and so on.
Without knowing precisely why those decisions were taken (good reason? ignorance? insanity?) it's not clear what steps to take.
Vaguely leaning towards symlinking or hardlinking but precisely what to do and which way around is still unclear.
Are those dotfiles have your user permissions or are they owned by a system account like root?
coffeeguy likes this.
alternateved
in reply to palordrolap • • •$HOME
would be a better place.palordrolap
in reply to alternateved • • •Then they shouldn't have dots on them (bad design decision) and should be backed up by the system backup/restore mechanism, whatever that might be, not the user's own homedir backup, which is what I assume OP is talking about.
If they're talking about a full system backup including home directories, that's a moot point because I'd expect they'd be included anyway, dot or not.
alternateved
in reply to gkpy • • •stow --target /etc
flag if you use stow for managing dotfiles.like this
Hupf and citron like this.
Eager Eagle
in reply to gkpy • • •georgi doesn't like this.
JubilantJaguar
in reply to Eager Eagle • • •--etc--hosts
and so on. Avoids creating a giant tree of mostly empty directories. Wish distros came with a default out-of-the-box solution for all this.Eager Eagle
in reply to JubilantJaguar • • •$XDG_CONFIG_HOME
would be nice though.JubilantJaguar likes this.
eshep
in reply to gkpy • •I assume by "dotfiles" you simply mean "config files" as there should be nothing in your
/etc/portage
directory that's hidden. For all configs I want to backup, I just keep a copy of them elsewhere. As for portage stuff, I just copy mymake.conf
, and everything in eachrepos.conf
andpackage.*
directories.If you want to simplify a complex solution to an already simple thing, take a look at bare git worktrees.
like this
ABeeinSpace, Elw, bizdelnick and Daniel Phan like this.
Linux reshared this.
nyan
in reply to eshep • • •/var/lib/portage/world
, which isn't even in /etc.eshep likes this.
eshep
in reply to nyan • •world
if nothing else. How the hell'd I forget that!. I usually symlink it to /etc but then forget I did when updating backups. Worst case, I wind up with a slightly old world file if I need no rebuild.Linux reshared this.
nyan
in reply to eshep • • •eshep likes this.
dotslashme
in reply to gkpy • • •configure · master · Christian Velin / dotfiles · GitLab
GitLablike this
toasteranimation, L3ft_F13ld!, georgi, bia, Daniel Phan, jbrains and madeindjs like this.
aurtzy
in reply to gkpy • • •/etc
files with version control systems. I can't say much about it since I've never used it, though.etckeeper
etckeeper.branchable.comlike this
Atemu, L3ft_F13ld!, ABeeinSpace, triarius, Andy, Phoenix3875, ffdragon, tychosmoose, Daniel Phan and jbrains like this.
Andy
in reply to aurtzy • • •GitHub - CyberShadow/aconfmgr: A configuration manager for Arch Linux
GitHubLily33
in reply to gkpy • • •like this
ChrisOboe, Triton, 908musdf, Daniel Phan, demesisx and Klaymore like this.
lemminer doesn't like this.
lemminer
in reply to gkpy • • •Elw
in reply to gkpy • • •like this
DearAll, mkhoury, Phoenix3875, bia, Daniel Phan and underscores like this.
madcow doesn't like this.
demesisx
in reply to gkpy • • •like this
gkpy, Klaymore and cyph3rPunk like this.