LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   System Backup, what do you backup? (https://www.linuxquestions.org/questions/mandriva-30/system-backup-what-do-you-backup-645452/)

GlennsPref 05-28-2008 07:17 PM

System Backup, what do you backup?
 
System Backup, what do you backup?

Hi, I have installed simplebackup-1.8.1 from source and

I need to make a list of what to backup (list.txt),

and a list of what not to backup(reject-list.txt).

So, I have just done a quick look and listed those files I think should be backed up(etc/files) and vis-a-vis(music/mp3s).

So, Do any of you have a set of files you always backup?

And if so, please share your technique with us?

Thank you, Glenn:scratch:

jailbait 05-28-2008 07:27 PM

I back up every file except the following:

thumbnails
browser cache
trash
partition table
MBR.

I backup using the update mode so that the only files that are copied to backup are those which are new or have changed since the last backup.

--------------------
Steve Stites

GlennsPref 05-28-2008 07:49 PM

Thanks for the response, That first backup must have taken a while, I presume.

Although I now have the disk-space to backup all, I thought I would try something more accessible to the average user.

Currently, / is 700Mb. It (the partition) contains /bin /dev /etc /initrd /lib /lib64 /opt /proc /root /sbin.

All the others are on there own partitions. /boot /home /local/* /media/* /mnt/* /tmp /usr /var /var/ftp/ /var/www.

I ask this because I often(about 2 or 3 times a year) re-install linux when "I" have broken it by mis-configuring something.

This way I usually avoid re-formatting most of the directories, with / and /usr sometimes /var mainly being re-formatted during and install.

I also would like to keep it(the backup) small and simple, but useful.

Something more consise would be nice.

Thank you. Glenn

salasi 05-29-2008 08:49 AM

I don't backup stuff that I can simply re-install. So, I backup /home and some known config files that I have touched, in (usually) /etc.

I'd probably take a different approach on an 'enterprise' server, but, right now, if hardware goes bad on me, I'll probably do an OS update at the same time, and that will usually be true.

ernie 05-29-2008 10:57 AM

My backup methodology is similar to salasi's with the exception that I burn a set of images to disk for each of my partitions following installation and configuration of the most current Mandriva release (to facilitate restoration of my original system if the need should arise).

I make a weekly (dated) image of each of my system partitions to reduce the volume of software updates in the event of disaster.

I run a daily incremental backup of my /home partition and my /etc directory so if disaster should strike, I lose no more than a days work.

Your needs may vary, but this system works well for me. I am never more than about an hour from a usable system fully configured and back to what I had before disaster struck. This system has saved my bacon on one occasion, and permitted me to recover inadvertently deleted files several times (I do not use KDE's trashcan).

HTH,

GlennsPref 06-02-2008 12:00 AM

Hi, Salasi, That is what I usually do as well. But I'm trying to look forward,

most clients do not appreciate being told a re-install is the only fix.

If I am to pass myself off as a technician, then there must be a better way.

Thanks Ernie, I'm working on it.

Glenn

jschiwal 06-02-2008 01:00 AM

You don't want to include /tmp, /var/tmp, /mnt, /proc, dev/pts or /media in your backup.

You can use dd to create a backup of the MBR. There may also be an MBR backup in /boot/. Also use "sudo /sbin/fdisk -l" to display the partition tables of all of the drives and print out the result. It can be used to manually restore a partition table if you need to.

dd if=/dev/sda of=/<path>/<to>/<backupdir>/MBR-sda-bu-<date> bs=512 count=1

This will backup the bootstrap loader and the partition table. You can reverse the process if you have to replace the drive or the partition table becomes corrupted.

It might be a good idea to backup the /home partition separately. That will allow you to backup your personal files and if later you perform a fresh install or install a different distro, you can restore files from your backup.

A backup program I like is kdar. It is a kde front end to the dar program. DAR stands for Disk ARchive. It is like tar but will produce a backup slices that you can burn to CD or DVD. You can use the GUI front end to configure what to backup, and use handy drop down items to exclude certain items from backup, or to exclude certain filetypes from compression. After you are done configuring, you can export the job to a shell script. This is especially handy because you can later configure an incremental backup and run that periodically as a cron job. This works best if you save the slices to a network share or an external drive if an incremental backup might be larger than a cd or dvd. You can also export a bash script to restore. The export scripts use dar and don't need kdar.

pinniped 06-02-2008 01:24 AM

I backup like salasi - just /home, /etc, and a list of installed software. I keep CDs/DVDs of all relevant installed software (on a per-machine basis) so I can completely rebuild a system in under 1 hour and restore all relevant data and settings in a short period of time (how long depends on how much data is actually stored).

"most clients do not appreciate being told a re-install is the only fix"

Yeah, well, if clients want to run things, I suggest running away and letting them run things. Who's supposed to be the expert anyway? Personally, if I don't have absolute control of a machine, I won't have anything to do with it - I won't be blamed for other people's screwups. If people want me to look at a machine that someone else screwed up, they can pay me appropriate rates rather than wasting my time telling me I'm to blame and should fix it for nothing. A system that's been well administered from the start really won't require anything backed up except for /etc and /home. A complete reinstall is far less of a hassle than attempting a complete system recovery from backup. The exception of course is the WinDuhs world where everything is unbelievably defective from the start and people consider HD 'ghosting' as an essential and routine operation, while I consider it a waste of time and money. I can restore any Linux system which I administer in far less time than anyone can perform a similar recovery on WinDuhs.

GlennsPref 06-02-2008 07:54 AM

Well, there are just so many programs out there, I thought I'd get to know some more.

I already have used dd_rhelp, testdisk(for retreival) and have been experimenting with backups lately.

Thanks for the info, kdar sounds like something I can get into. (I like the auto scripts)

I agree with you, pinniped, and I usually work in a similar fashion, I just thought I'd get geeky.

Thank you, regards, Glenn


All times are GMT -5. The time now is 09:16 AM.