LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-05-2010, 09:55 PM   #1
peterson.julia
Member
 
Registered: Nov 2009
Distribution: All flavors...
Posts: 37

Rep: Reputation: 1
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.
 
Old 01-05-2010, 10:08 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609

Rep: Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139
Quote:
Originally Posted by peterson.julia View Post
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.
 
Old 01-05-2010, 10:11 PM   #3
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
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.
 
Old 01-06-2010, 02:56 AM   #4
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
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.
 
Old 01-06-2010, 08:34 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609

Rep: Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139
Quote:
Originally Posted by leopard View Post
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.....
 
Old 01-06-2010, 08:50 AM   #6
internetplayer
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
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)
 
Old 01-06-2010, 09:28 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609

Rep: Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139Reputation: 8139
Quote:
Originally Posted by internetplayer View Post
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.
 
Old 01-06-2010, 09:55 AM   #8
slacker_et
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 140

Rep: Reputation: 27
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Build Project is not including the included directories in Kdevelop 4 avanindra Programming 2 09-27-2009 05:33 PM
Which Directories to Backup? jamoody Linux - Newbie 3 06-09-2009 10:28 PM
How do I backup OS X (Just the system directories) Burgin Other *NIX 0 10-30-2005 11:28 AM
Automatic backup of specified directories? Spreegem Debian 3 07-28-2005 11:08 PM
Home Directories - Backup kwigibo Linux - General 1 08-23-2002 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 PM.

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