LinuxQuestions.org
Review your favorite Linux distribution.
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-26-2008, 01:21 AM   #1
binuveranal
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Post help me to take backup to tape drive using tar


hi
how can i take backup full and differential to tape drive by using tar cammand. and how can i restore the data. which is the cammand use to restore.
 
Old 02-26-2008, 03:33 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
FYI. Two small corrections: I instead of i and command instead of cammand.

Look in section 5.2 for how to perform incremental dumps. Look at the -g or -G options. They allow you to create a listed-incremental timestamp file when creating an archive. You can also use the --newer option instead to create an incremental backup of files newer than the date argument you supply.

Another method is to use the find command to locate files after a particular date and create a list of files to backup.

The -g and -G options may be GNU extensions. Also pay attention to attribute and posix acl support with your version of tar. You may want to use the "star" program instead if tar won't backup posix acl's or attributes.

There are different ways you could indicate which directories to backup. You can include them in the arguments to the tar command, or you can use the DIR_LIST environmental variable.

Depending on the size of your tapes and the amount you need to backup, you may need to use --multi-volume option to create an archive on multiple tapes.

----

You said you wanted differential backups. The difference between differential backups and incremental backups is that differential backups save all changes since the first full backup. An incremental backup saves changes since the last backup. So subsequent incremental backups are smaller, but they need to be restored in sequence. You only need to perform a full restore and the last differential backup.

If you use the first named snapshot file when performing a differential backup, that would be the same as performing a differential backup.

----

I don't own a tape device and don't have experience using the "mt" or "rmt" command. You may need to run an "mt" command before the tar command to cue the tape where it needs to be. Different tape devices may need different options as well. And you may need to track which archive on the tape to cue up to.

You might consider using the source for tar to create a print-worthy ps or pdf version of the info manual from the .texi docbook source.

Last edited by jschiwal; 02-26-2008 at 03:53 AM.
 
  


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
Tar not able to perform backup on tape drive livetoday Red Hat 2 09-29-2007 03:16 AM
Appending to a tar tape backup sonici-aus Linux - Newbie 3 07-11-2007 01:45 AM
tar backup maximum 2gb only per tape tsaravan Linux - General 6 09-20-2006 06:45 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
newbie tar/tape backup questions mattl Fedora 3 04-24-2006 10:07 PM


All times are GMT -5. The time now is 07:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration