LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-29-2008, 08:36 AM   #1
jonette20
Member
 
Registered: Jul 2007
Location: Ohio
Distribution: Ubuntu 7.04
Posts: 65

Rep: Reputation: 15
Backup for Squid


Hi All,

I have Squid setup on a Ubuntu 7.04 server.
Can anyone suggest a good backup utility?

Thanks in advance
jonette20
 
Old 02-29-2008, 11:21 PM   #2
eaglek96
LQ Newbie
 
Registered: Feb 2008
Location: Massachusetts
Distribution: Debian Linux and FreeBSD
Posts: 12

Rep: Reputation: 0
What exactly are you looking to back up, and what kind of media are you willing to use? Are you trying to back up the squid cache?

I personally like dump and restore, but you could certainly use other things like tar/gzip.
 
Old 03-03-2008, 07:41 AM   #3
jonette20
Member
 
Registered: Jul 2007
Location: Ohio
Distribution: Ubuntu 7.04
Posts: 65

Original Poster
Rep: Reputation: 15
I don't think I need to backup the squid cache.
I just want to be able to restore the service if the server goes down with minimum amount of time.

Any suggestions?
 
Old 03-03-2008, 01:05 PM   #4
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
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...

Webmin will also backup configuration files.


-weisso
 
Old 03-03-2008, 02:11 PM   #5
j4q8
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Maybe you need Disaster Recovery solution, if so check out Mondo Rescue.
 
Old 03-05-2008, 09:22 AM   #6
jonette20
Member
 
Registered: Jul 2007
Location: Ohio
Distribution: Ubuntu 7.04
Posts: 65

Original Poster
Rep: Reputation: 15
Hi,

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.

jonette20
 
Old 03-05-2008, 10:07 AM   #7
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
Hello,

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.


-weisso
 
  


Reply



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
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM
squid issues or what? - LAN backup server setup problem htm Linux - Networking 2 03-18-2004 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration