SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Well, I'm in love with Slack..
Kinda old friendship..!!
Even though, I'm not geek enough to rock and roll..
Any way, I have my own box at home, which I turned into a web server.
I used to use it for testing and for websites designing purposes..
That's not the point, the most important point, is I do a lot of formats and reinstall which in fact got me bored..
I was looking for a way to back up the whole system after I do a fresh installation and configuration which fit my needs.. then burn it on a CD or something like that. So when I need to do a format again.. I do a restore for my burned image to find the box ready and configured.. just like a fresh installation.
the Question is:
Is there any way to get that done?
if not.. a similar way..
For those of us who are professional system administrators we can fabricate a solution for our own systems without any trouble. The trouble comes when someone who is not highly technical wants to back up their system. The reason that this is a problem is that there are few if any backup products that are easy to use.
The same situation exists on other platforms; this sad situation is not unique to Linux.
The best one shot solution for backing up a newly installed and configured system is to boot a Linux live CD, use dd to back up the disk's MBR to a file on the backup disk, then back up the Linux partition to a partimage backup file on the backup disk.
Here is an example to use partimage to back up /dev/sda1 onto /dev/sdb1.
Code:
mount /dev/sdb1 /mnt/backup
dd if=/dev/sda of=/mnt/backup/sda-mbr.dd bs=512 count=1 conv=notrunc,noerror
partimage
When you run partimage without any parameters it creates an ncurses GUI so you can step through setting all of the parameters without learning the command line syntax.
Partimage will automatically save the disk's MBR in the backup file unless you use bzip compression. However I have seen a situation where partimage could not restore the MBR from its backup file. That's why I make a separate backup of the MBR.
Last edited by stress_junkie; 06-30-2009 at 09:24 AM.
As already stated, there are a million and one ways to backup systems ... but perhaps what you're looking for isn't so much a backup, as a mechanism for rebuild.
Does any Linux LiveCD ship with that utility? Because I'm thinking of a bit of experimentation and I'd like to take a full backup of my Debian installation otherwise I'll lose weeks of customization and configuration.
If all you want is a quick point-and-click method to image or mirror a hard drive or hard drive partition, I agree with Eric to try Parted Magic. A nice little dedicated Live CD.
If the files you want to copy are mostly static with only a few modifications, then perhaps you are looking for a way to copy the /etc directory. You can handle that with basic point-and-click in any file manager, K3B, etc.
If you want some more flexibility but want to conserve disk space and time, rsync is a good candidate as only file differences are copied. Rsnapshot is a great tool that uses rsync and is dedicated toward performing backups. If that is what you seek then perhaps the following might help:
I have the luxury of having several desktops at home, one for each member of the family (2x Windows for the kids, 2x Slackware for the adults), plus a server (build from older parts).
Each individual stores its files in a folder on the local hard drive and rsync scripts (in windows with cygwin, but they don't even know it's there) backup data to a central "server".
Really important data I copy to media that I keep "off-site" (in a drawer at work), so that I have something even if disaster strikes at home.
When I turn on my notebook at home it recognizes that it is on my wireless network and starts syncing two-ways as well (in case I get robbed or whatever).
rsync is fast since it only copies what has changed. And you can limit the band-with so your network won't get clogged.
The best one shot solution for backing up a newly installed and configured system is to boot a Linux live CD, use dd to back up the disk's MBR to a file on the backup disk, then back up the Linux partition to a partimage backup file on the backup disk.
Here is an example to use partimage to back up /dev/sda1 onto /dev/sdb1.
Code:
mount /dev/sdb1 /mnt/backup
dd if=/dev/sda of=/mnt/backup/sda-mbr.dd bs=512 count=1 conv=notrunc,noerror
partimage
When you run partimage without any parameters it creates an ncurses GUI so you can step through setting all of the parameters without learning the command line syntax.
Great, Thanks a lot for this piece of information.. I guess this is mostly what I exactly need.
I'd like to shoot one more question if you kindly allow me to..
Now, I have backed up the system.. how do I restore it in case of a crash down, or if it got missed up?
I do really appreciate your help and cooperation..
Cheers..
On Parted Magic: It's not detecting my SATA hard drive or the USB external disk when it boots, thus rendering it useless for my purpose. I tried with different options and it simply fails to detect the drives on boot. As a result, I'm not able to use any of the tools it offers at all. Only the CD ROM drive shows up as /dev/hda.
I downloaded and tried the latest version available on their website: 4.2.
Does Parted Magic work with SATA drives at all? Has anybody verified it?
I'm very surprised because most Linux LiveCDs detect my hard disk. Ubuntu hardy heron did, but it doesn't have the disk-cloning and partition-cloing tools that Parted Magic has.
My laptop dv6000 has very standard SATA set up that is detected by most Linux LiveCDs. A liveCD that purports to offer a rescue setup should have detected it without a problem.
Last edited by vharishankar; 07-01-2009 at 11:04 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.