There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Backup Help


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
dtugg's Avatar
Senior Member with 347 posts.
 
Join Date: Oct 2002
Location: Princeton
18-Nov-2004, 03:21 PM #1
Backup Help
I have a couple of Linux boxes that I run with various services like: sendmail, httpd, vsftpd, and the like. I've always been told that if you backup the /etc/ directory that you can simply install the new OS (even if it's a different distro) and copy the etc over. This apparently isn't true since i tried it last night and it didn't work.

I guess what I'm asking is for backup help. Can any of you pass along how you back up your NIX boxes?

Thanks,

dtugg
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
18-Nov-2004, 06:43 PM #2
#!/bin/bash
tar cjpf /backup/current.tar.bz2 / --exclude=current.tar.bz2 --exclude=/proc

add that to your cron job and have it run once a week. you'll have a fresh backup of the entire system once a week

warning: this takes a while!

To restore. put this current.tar.bz2 on a cdrom/dvd-rom. Boot up any live cd. mount your main drive. and copy the tar.bz2 over. untar it and just reinstall the mbr.
__________________
Gentoo Developer, and 64bit os user

"In feeding Mother Nature, you are fed in return" - Tsunam (2005). Concerning water conservation, and raising water tables.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
18-Nov-2004, 06:53 PM #3
The problem probably lies in program versions. It would be a hard time to make sure that all the conf files are for the right version. It might work kinda like window's system restore though.
dtugg's Avatar
Senior Member with 347 posts.
 
Join Date: Oct 2002
Location: Princeton
19-Nov-2004, 11:02 AM #4
Thanks for the replies guys. Anyone else? Not enought HD space on most of my machines for:
tar cjpf /backup/current.tar.bz2 / --exclude=current.tar.bz2 --exclude=/proc

I'm looking at ghosting software now. Hopefully something will come up.

Thanks again.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
19-Nov-2004, 04:49 PM #5
well, the most important directory is /home. So I'd back that up somwhere. After that, it just depends on what you want to save, and what you are willing to rebuild.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
19-Nov-2004, 06:15 PM #6
YOu may also want to look into this. http://mkcdrec.ota.be/project/
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:09 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.