LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-05-2017, 04:34 PM   #46
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323

https://github.com/duganchen/dotfiles
 
Old 09-07-2017, 12:03 PM   #47
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by jeremy View Post
i am trying this approach now.
no symlinks - sounds good.
and only git - good, i half know how to use it already.

but the philosophical question remains:
Quote:
Originally Posted by ondoho View Post
What are dotfiles actually?
why would i treat a particular subset of files differently?
 
Old 09-07-2017, 12:26 PM   #48
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,734

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by ondoho View Post
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.
 
Old 09-08-2017, 11:31 AM   #49
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Quote:
Originally Posted by linustalman View Post
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.
 
Old 09-08-2017, 10:31 PM   #50
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
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 View Post
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.
 
Old 09-10-2017, 01:44 PM   #51
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,734

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by JZL240I-U View Post
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.
 
Old 09-11-2017, 05:13 AM   #52
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Short answer: I don't.

Longer answer: I use Clonezilla for my backups therefore Clonezilla takes care of the rest (as far as I know anyway, I hope so, at the very least).
 
Old 11-14-2018, 01:47 PM   #53
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
I just found out that there's a GNU program for this.

Managing Dotfiles with GNU Stow
 
1 members found this post helpful.
Old 11-15-2018, 01:13 AM   #54
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Neat. Thanks for posting this find .
 
1 members found this post helpful.
Old 11-15-2018, 08:18 AM   #55
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,666
Blog Entries: 19

Rep: Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490Reputation: 4490
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).
 
Old 11-15-2018, 08:13 PM   #56
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
I've got a directory of files: https://github.com/Myk267/dotfiles and a script that makes directories I need, sym-links my files into place, and syncs plugins I use in vim: https://github.com/Myk267/dotfiles/b...ter/install.py. I should probably clone via branch instead of whatever the latest on github is, but here we are.
 
1 members found this post helpful.
Old 03-15-2020, 12:01 PM   #57
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Don't know about anyone else, but I plan to start using Ansible for this.
 
Old 03-15-2020, 12:39 PM   #58
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
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.
 
Old 03-16-2020, 02:49 AM   #59
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,734

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by sevendogsbsd View Post
Assuming by "dot files", you mean files in my /home directory....
Hi sevendogsbsd. Yes, that's what I meant.

I don't see any option to mark this thread as solved. 🤔❔

Last edited by linustalman; 03-16-2020 at 02:52 AM.
 
Old 03-16-2020, 03:09 AM   #60
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Quote:
Originally Posted by linustalman View Post
...
I don't see any option to mark this thread as solved. 🤔❔
Log in and click on "Tread Tools". That should do it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ls showing dotfiles in bash iaef Linux - Newbie 9 08-28-2015 05:49 PM
[SOLVED] Sourcing dotfiles. Lockywolf Slackware 27 05-06-2014 06:53 AM
[SOLVED] Dotfiles becoming undotted in 64-13.1 ahmadj Slackware 9 12-24-2010 01:50 PM
Archive dotfiles and dotdirectories only mjmwired Linux - Software 3 05-28-2008 10:01 PM
Command line: How do I filter for dotfiles only? unamiccia Linux - General 21 04-14-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration