LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where Are Some Files I Would Like To Backup? (https://www.linuxquestions.org/questions/linux-newbie-8/where-are-some-files-i-would-like-to-backup-517127/)

Harpo 01-07-2007 09:24 AM

Where Are Some Files I Would Like To Backup?
 
Hello

I am looking to backup my computer and would like to know where I can find some files that I should back up. I am using Suse 10.0, with KDE 3.5.

I am using Konqueror and KMail and would like to know where Bookmarks, and my E-Mail files are kept so I can properly back up.

Any help is greatly appreciated.

Thanks
Harpo
:newbie:

bobdevis 01-07-2007 09:30 AM

Turn on 'show hidden files' in your file browser. You will see lots of stuff starting with a dot (.) in your home directory. Those are your personal settings of your programs.
Your Firefox bookmarks are somewhere in /home/yourusername/.mozilla/firefox for example.

The setup is that the programs themselves are in /bin, /lib and /usr among other places. Only root can write there, so all the settings and saved variables of the programs that you use as a user are stored in a hidden dir or file starting with a dot in your homedir.
This way, all users have their own saved variables (like bookmarks and mail, kde look, etc etc) and no user can screw up stuff for others, unless he usees the root password and does something stupid ofcause (:

JimBass 01-07-2007 10:43 AM

There are 2 things to consider. First there is the specific settings for your user, and also system wide settings. As mentioned, all of your user settings exist in /home/user. If your system has space for it, you could create tar.bz2 backups of your entire home directory, and stick them somehwere else, either on a removable drive, or another location, like /var/backups or anything that suits your fancy.

It is also important on a system wide level to back up the /etc/ directory. That is where configuration for all users on the system are, and also the configs for things like ssh, samba, and nearly everything else reside. Just backing up your home directory is fine if your user account somehow gets screwed up, but if your system dies (hard drive failure, motherboard failure), having etc backed up will allow you to get the exact same system rebuilt very easily.

When I switched desktops about 9 months ago, I did a full tar.bz2 of my home directory, also one of /etc, and one of /usr/local where I compile from source, and using the dpkg tool in Debian, I was able to make a list of every program that I had installed. I installed the new system, used dpkg to reinstall all the same programs from the apt repositories, recompiled the things in /usr/local, replaced all the files in /etc with the ones from my old /etc, and untarred the home directory in the same place. I rebooted, and my new system was identical to my old.

There is also a great tool for making backups, called backuppc. It really is excellent, and can backup other machines on your LAN as well, assuming you have the space to hold the backups. I don't know if Suse has that in its repositories, but I rather expect that it does. That makes backups easy to do.

Peace,
JimBass

pwc101 01-07-2007 11:04 AM

If you have the space (or inclination) you can back up your entire root partition using dd. There's a good article on it in the wiki (http://wiki.linuxquestions.org/wiki/Dd), and there's also an excellent thread here


All times are GMT -5. The time now is 03:58 PM.