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.
Sure, you can just go and keep mounting to '/home/.', but as I'm expanding the definition to include all files related to usage data — i.e., files which would need special attention when migrating to a different system —, which features stuff previously contained in '/home/.' but also would include some content previously placed in '/etc/.' or '/var/.'.
My best choice thus far is '/uden/.', which refers to ‘usage den’, but I wonder what others would think of that.
What do you think of that, or what would you suggest?
A common location used for many application installations has been /opt. Some 3rd party apps put things there by default. Typically you'd want to make that a separate filesystem so application data doesn't fill up your root filesystem.
However, you really can make your own directory structure for applications.
Be sure you know what your app is creating though. There are some (e.g. Oracle) that will put small files in /etc or /var even though the bulk of what they do installs where you tell it.
Personally I currently leave /etc, /var, /home where nature originally intended and simply add an additional drive to my system and use that as a backup device. So simply put mount the secondary disk at the required location and via a weekly cron copy the files to that device, i.e.
Code:
find /etc | cpio -pdmuv /media/MountLocation (copies data to /media/MountLocation/etc/....)
find /var | cpio -pdmuv /media/MountLocation (copies data to /media/MountLocation/var/....)
find /home |cpio -pdmuv /media/MountLocation (copies data to /media/MountLocation/home/....
Using the above you have a nice simple way of maintaining your directory structure, file permissions, etc of the data on the secondary device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.