Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
It never hurts to backup the configuration file backing up the store is a waste of time.
Also if you are worried about squid crashing, a very simple solution is to setup Webmin to monitor the process and do command X if the process is killed unexpectedly...
I think I need something like Ghost for Linux. I just want to be able to duplicate the system in case of hardware crash or Squid services crashing.
I don't want to have to reinstall Ubuntu or Squid, and if u know my history, u would know why. (smile)
Has anyone tried Ghost for Linux? Does it have alot of issues?
Of course, I will keep looking at other forums and such to find out more, just thought I would ask.
If you read up on some of the options presented above you will see that you can clone and restore a linux machine using a ghost like process, but free of cost. To summarize here are two quick ways of doing it, just so you get an idea of what is involved. You need to understand for this to work, that machine you are restoring this image too has to be of somewhat identical hardware or else this will not work AND this also assumes that you are using a less customized kernel. THESE are just examples to show you that it is possible and they must be tailored to your situation.
These examples also assume you will have identical partition tables.
1. Using rsync:
shell#rsync -Saq --numeric-ids --exclude=/proc --exclude=/sys \
-e 'ssh -c blowfish' SourceServer:/ path_to_SourceServer_img/
That will copy all data on source into one file
shell# dd if=/dev/sda of=/tmp/MBR_backup.bin bs=512 count=1
That backs up MBR
2. Using Netcat:
shell_source# dd if=/dev/hda conv=sync,noerror bs=64k | nc -l -q 0 -p 5000
shell_target# nc 192.168.1.1 5000 | dd of=/dev/hda bs=64k
This will take a long time.
Boot from Live Cd on Target.
Chroot into new env.
edit configuration files to fit new machine.
Restore MBR or Remake.
Reboot.
Hope this gives you the information you were looking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.