Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by actinide
How do you go about backing up program settings. I want to reinstall
the OS without the added hassle of reconfiguring every application.
Such config files are usually stored in your "home" folder, in a hidden folder, that's name start's with a "."
For example; /home/james/.mozilla/firefox/ would be where on my PC Firefox stores it's settings for my user account. Hope I understand your question correctly.
Can you recommend a program that can save all my application settings so i can reinstall the OS.
The question is why do you want to reinstall your OS in the first place? Config files are scattered all over the file system, some are in your $HOME, some in /etc. You can easily backup whole operating system with rsync before reinstalling it so that you can always restore your previous settings and data. I would definitely do that.
The simplest way to achieve your goal is to have a separate /home partition. As mentioned above the user-centric modification are usually under /home in hidden files. I have used this on different releases and gone back to the previous release - all worked fine.
If you have manually updated things like the grub default file, you will have to re-apply those changes yourself. And of course you will have to re-install any packages you have selected - note that your settings for those will also be picked up ok.
I back up the following directory trees daily, with rsnapshot. The idea is to capture configuration files, but I also get log files, user emails, all web content, etc.
Code:
etc
/home
/root
/service
/usr
/var
rsnapshot does incremental backups using rsync, so, with 7 daily 4 weekly and 1 monthly backup, they take up 50G on the backup server.
The production server shows 39.4G used, of which 38G is being backed up.
I agree that /home and /var (for web content) is mostly sufficient, but /etc contains many important files (doh!) and I use daemontools, so /service is important.
Check out rsnapshot.
One caveat: Out of the box, rsnapshot puts the backups in a hidden directory at /.snapshots...on my backup server, the / partition is 50G, so I nearly ran out of space before I reconfigured to backup to a directory under /home (which is 411G on that box)
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
I always reconfigure everything except email and browser. Otherwise, I forget how to do it. And old configuration files aren't always compatible to the new program versions. I also keep the old firewall script, and any custom programs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.