LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-17-2012, 09:22 PM   #1
sandrajoy
LQ Newbie
 
Registered: Sep 2012
Location: Los Angeles, CA
Distribution: not sure what this means
Posts: 5

Rep: Reputation: Disabled
Question How to verify or compare a tar


I am using an LTO5 HP Ultrium stand alone drive to backup computer graphics data.

The command I use from the source directory is
# tar --blocking-factor 1024 -cvf /dev/st0 subdirectoryname1 subdirectoryname2

After the tar is written to the tape I use a -tvf command to read what is on the tape to see if it matches. This takes a long time.

Can someone recommend a compare or verify command I can use? Will --verify work with my tape drive and could I just add W to my current -cvf command? Would it be -cvfW?
 
Old 10-18-2012, 01:07 AM   #2
nugat
Member
 
Registered: Sep 2012
Posts: 122

Rep: Reputation: 31
Quote:
Originally Posted by sandrajoy View Post
Can someone recommend a compare or verify command I can use? Will --verify work with my tape drive and could I just add W to my current -cvf command? Would it be -cvfW?
You could use the -W option, but don't put it after the "f" or you'll confuse tar. Put it before it, e.g.:

Code:
tar -cvWf tar.file /files/to/tar
note that verify borks on files with absolute path that tar removes, so you may need to use the -P flag, e.g.:

Code:
tar -cvPWf tar.file /files/to/tar
Btw, I don't have a tape drive, so I have no idea if this is tape-friendly method or not! Test, test, test!
 
1 members found this post helpful.
Old 10-19-2012, 01:38 AM   #3
sandrajoy
LQ Newbie
 
Registered: Sep 2012
Location: Los Angeles, CA
Distribution: not sure what this means
Posts: 5

Original Poster
Rep: Reputation: Disabled
Nugat,

Thank you. I used -cvPWf and it's working. The directories were written to LTO5 tape first and now each directory and file is being verified. Here is the how the operation is displayed in the shell at the end of the tar write and the beginning of the verify portion. Now I am waiting to see if there are any errors and what the system will say if there are errors.

13_ep111/031_111-031/CAM/maya/renderScenes/
13_ep111/031_111-031/CAM/maya/sound/
13_ep111/031_111-031/CAM/maya/assets/
13_ep111/031_111-031/CAM/maya/backplates/
13_ep111/031_111-031/CAM/maya/scenes/
13_ep111/031_111-031/CAM/syntheyes/
13_ep111/031_111-031/CAM/syntheyes/.gdi/
13_ep111/031_111-031/CAM/syntheyes/.gdi/type
13_ep111/031_111-031/CAM/syntheyes/source/
13_ep111/031_111-031/CAM/syntheyes/images/
Verify 10_ep108/
Verify 10_ep108/_QuickTime_IO/
Verify 10_ep108/_QuickTime_IO/.gdi/
Verify 10_ep108/_QuickTime_IO/.gdi/type
Verify 10_ep108/_QuickTime_IO/Layoff/
Verify 10_ep108/_QuickTime_IO/Layoff/.gdi/
Verify 10_ep108/_QuickTime_IO/Layoff/.gdi/type
Verify 10_ep108/_QuickTime_IO/Layoff/112911_FINALS/
Verify 10_ep108/_QuickTime_IO/Layoff/112911_FINALS/108_080/
Verify 10_ep108/_QuickTime_IO/Layoff/112911_FINALS/108_080/108_080_eb_B03.000018.dpx
Verify 10_ep108/_QuickTime_IO/Layoff/112911_FINALS/108_080/108_080_eb_B03.000002.dpx
Verify 10_ep108/_QuickTime_IO/Layoff/112911_FINALS/108_080/108_080_eb_B03.000017.dpx
 
  


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
[SOLVED] large tar nightly + rsync to compare question sir-lancealot Linux - Server 5 01-05-2011 03:28 PM
Slack 10.0 GNU tar --multi-volume on LTO-3 doesn't verify for me petcherd Slackware 13 01-07-2008 07:34 AM
tar --compare ygloo Linux - General 2 02-23-2007 05:21 PM
Can we verify a corrupted TAR? tsilok Linux - Newbie 4 09-12-2005 09:37 PM
backup/verify files with tar hokri Linux - General 0 11-27-2001 07:05 AM


All times are GMT -5. The time now is 06:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration