Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Backup Help

Reply  
Thread Tools
dtugg's Avatar
Member with 347 posts.
 
Join Date: Oct 2002
Location: Princeton
18-Nov-2004, 04: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, 07: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
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
18-Nov-2004, 07: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
Member with 347 posts.
 
Join Date: Oct 2002
Location: Princeton
19-Nov-2004, 12:02 PM #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
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
19-Nov-2004, 05: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
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
19-Nov-2004, 07:15 PM #6
YOu may also want to look into this. http://mkcdrec.ota.be/project/
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
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 08:50 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.