LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 05-28-2008, 07:17 PM   #1
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Lightbulb 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
 
Old 05-28-2008, 07:27 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
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
 
Old 05-28-2008, 07:49 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Original Poster
Rep: Reputation: 199Reputation: 199
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
 
Old 05-29-2008, 08:49 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,888

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
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.
 
Old 05-29-2008, 10:57 AM   #5
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
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,
 
Old 06-02-2008, 12:00 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Original Poster
Rep: Reputation: 199Reputation: 199
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
 
Old 06-02-2008, 01:00 AM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 06-02-2008, 01:24 AM   #8
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
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.
 
Old 06-02-2008, 07:54 AM   #9
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Original Poster
Rep: Reputation: 199Reputation: 199
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
 
  


Reply

Tags
backup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 01:13 AM
Error when attempting backup with File Backup lglrgl Linux - Software 0 08-03-2006 10:38 AM
Selective backup to CDRW, or other backup methods. trekk Linux - Software 1 11-03-2003 02:46 PM
how do I backup system tarballedtux Linux - General 4 12-29-2001 02:32 AM


All times are GMT -5. The time now is 06:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration