Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-05-2010, 09:55 PM
|
#1
|
Member
Registered: Nov 2009
Distribution: All flavors...
Posts: 37
Rep:
|
What directories should be included in backup?
Can you please tell me from your experience what directories/files should be backed up? What are you using for this job?
Added: I know maybe I wasn't clear about it, sorry but I wanted simple answer as this this this is good to back up and this not. And I use cpio or cron etc. Answer what slacker_et give me is perfect! Thanks for your time and effort appreciate it!
Basic backup: /home, /etc maybe /root and /boot and often you want to backup some parts of /var such as /var/log.
I can use cp and scp for simplest backup. tar, cpio for tape etc... I can use dump and restore for whole file system backup. rsync for incremental backup.
I wrote this in case someone goes through it. He can learn as well 
If you have further suggestions just post it plz. I want to hear it!
Thx!
Last edited by peterson.julia; 01-06-2010 at 07:16 PM.
|
|
|
01-05-2010, 10:08 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609
|
Quote:
Originally Posted by peterson.julia
Can you please tell me from your experience what directories/files should be backed up? What are you using for this job?
|
That's like asking "how high is up"?
What you need to back up, depends on where YOU decided to put your data. No one knows that but you. There are lots of backup products out there, that all do different things. Since you don't say what you need to back up, onto what media, your level of skill, or give details, it's hard for anyone to say what's the best thing for you to use.
Mondoarchive, mkcdrec, and systemimage are good 'all-around' backup options. So is tar, cpio, and just the 'cp' command, depending on what you're doing.
|
|
|
01-05-2010, 10:11 PM
|
#3
|
Senior Member
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Rep: 
|
Quote:
That's like asking "how high is up"?
|
Quite true. It depends on what you consider useful to be backed up. I use a rsync script. It's in my sig if you wanna have a look.
|
|
|
01-06-2010, 02:56 AM
|
#4
|
Senior Member
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Rep: 
|
Really, I think up is as high as high is up, and that when backing up your system, a complete, all-files backup is the way to go. This means if you mess up any particular part of your system, than you have a backup. Personally, I think a Live CD and a determined user can fix just about any mess if you are careful to not rm -rf anything important.
Anyways, if you're worried, theres nothing more secure or safe than a full system backup. Nitpicking files and folders may do more harm than good if you don't make backups often. I would also say that simply backing up the whole system might be easier than any alternatives.
I think dd'ing the partition to a external drive is a good method.
Last edited by lupusarcanus; 01-06-2010 at 03:04 AM.
|
|
|
01-06-2010, 08:34 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609
|
Quote:
Originally Posted by leopard
Really, I think up is as high as high is up, and that when backing up your system, a complete, all-files backup is the way to go. This means if you mess up any particular part of your system, than you have a backup. Personally, I think a Live CD and a determined user can fix just about any mess if you are careful to not rm -rf anything important.
Anyways, if you're worried, theres nothing more secure or safe than a full system backup. Nitpicking files and folders may do more harm than good if you don't make backups often. I would also say that simply backing up the whole system might be easier than any alternatives.
I think dd'ing the partition to a external drive is a good method.
|
I agree with the whole-system backup methodology, and with it in general. But, I think alot of it depends on the user.
A newbie, or a person who just saves all their data files in their home directory, can easily get away with just backing that up, or copying stuff off to another drive/location. For someone like that, going through "dd", or even mondoarchive (which is menu driven), is going to be a stretch. If it's made too hard, novices WON'T do it, and lose data.
Me, I use mondoarchive for 'full' backups, and take incremental snapshots of my data, on a daily basis, to multiple USB thumbdrives. Fulls go to external HDD's and DVD's both. But that's overkill if you just have someone who needs to save their pictures, music, and word docs, on occasion.....
|
|
|
01-06-2010, 08:50 AM
|
#6
|
LQ Newbie
Registered: Jan 2010
Posts: 5
Rep:
|
is there a proggrame for linux for making a backup files as general that works fine even with the linux files it self( as there is in windows) as i want to save my files (i do alot of research's and that includes with linux files sort of and im afraid if i lost that anyway) 
|
|
|
01-06-2010, 09:28 AM
|
#7
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609
|
Quote:
Originally Posted by internetplayer
is there a proggrame for linux for making a backup files as general that works fine even with the linux files it self( as there is in windows) as i want to save my files (i do alot of research's and that includes with linux files sort of and im afraid if i lost that anyway) 
|
Sorry, can't understand what you're asking. "Works fine even with the Linux files"????
There have been several backup options mentioned in this thread already...mkcdrec, mondoarchive, systemimager, dd, tar, cpio. Lots of others have been gone through on this site before, too, that you can find with a quick search.
|
|
|
01-06-2010, 09:55 AM
|
#8
|
Member
Registered: Dec 2009
Distribution: Slackware
Posts: 140
Rep:
|
On my home systems/servers that run all the time. I backup everything that is a local filesystem.
And I use rsync to copy to a spare hard drive on my one desktop that acts as an NFS server for all my other machines.
So on my Slackware 12.1 systems I backup: - bin
- boot
- etc
- dev
- home
- lib
- opt
- root
- sbin
- srv
- usr
- var
and exclude: - lost+found
- media
- mnt
- proc
- sys
When I make a major change to a system; such as when I upgrade. I usually boot the system from the installation cd/dvd.
And then use the dd command to copy the entire system to a spare hard drive.
--ET
|
|
|
All times are GMT -5. The time now is 07:50 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.
|
Latest Threads
LQ News
|
|