The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get the exit status yhacks Shell Programming and Scripting 1 05-19-2008 08:06 AM
Exit Status of SFTP uni1234 Shell Programming and Scripting 1 10-11-2007 02:03 PM
exit status moxxx68 Shell Programming and Scripting 1 12-04-2004 07:27 PM
Checking the exit status of ftp psingh UNIX for Advanced & Expert Users 1 06-04-2002 10:51 PM
ftp exit status. oracle8 UNIX for Advanced & Expert Users 1 10-21-2001 11:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-17-2002
thorndike thorndike is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 1
tar exit status

I am using tar to backup files to tape.

When the tape is full, I'm prompted for a second tape and told to press enter when ready. When I press enter, tar stops and gives an exit status of 5. Does anyone know what this indicates?

Also, if everything fits on one tape and the backup completes, I am getting an exit status of 1 (should be 0 if completed sucessfully). Any idea why?

This is the command I use (executed from a unix script) :

tar cvf /dev/rmt/1m `cat filelist`

(the filelist just contains \ so that everying from root down is backed up).
  #2 (permalink)  
Old 01-22-2002
kapilv kapilv is offline
Registered User
  
 

Join Date: Nov 2000
Location: India
Posts: 83
Hi

If you are using SUN OS then you can try using ufsdump instead of tar for multi volume backups.
  #3 (permalink)  
Old 01-22-2002
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,661
You can create multivolume backups with tar. From the man page:

Quote:

-M, --multi-volume
create/list/extract multi-volume archive
TAR is quite powerful...... here is an example of the range of options from the man page:

Quote:

NAME
tar - The GNU version of the tar archiving utility

SYNOPSIS
tar [ - ] A --catenate --concatenate | c --create | d
--diff --compare | r --append | t --list | u --update | x
-extract --get [ --atime-preserve ] [ -b, --block-size N ]
[ -B, --read-full-blocks ] [ -C, --directory DIR ] [
--checkpoint ] [ -f, --file [HOSTNAME:]F ] [ --force-
local ] [ -F, --info-script F --new-volume-script F ] [
-G, --incremental ] [ -g, --listed-incremental F ] [ -h,
--dereference ] [ -i, --ignore-zeros ] [ --ignore-failed-
read ] [ -k, --keep-old-files ] [ -K, --starting-file F ]
[ -l, --one-file-system ] [ -L, --tape-length N ] [ -m,
--modification-time ] [ -M, --multi-volume ] [ -N,
--after-date DATE, --newer DATE ] [ -o, --old-archive,
--portability ] [ -O, --to-stdout ] [ -p, --same-permis-
sions, --preserve-permissions ] [ -P, --absolute-paths ] [
--preserve ] [ -R, --record-number ] [ --remove-files
] [ -s, --same-order, --preserve-order ] [ --same-owner ]
[ -S, --sparse ] [ -T, --files-from F ] [ --null ] [
--totals ] [ -v, --verbose ] [ -V, --label NAME ] [
--version ] [ -w, --interactive, --confirmation ] [ -W,
--verify ] [ --exclude FILE ] [ -X, --exclude-from FILE
] [ -y, --bzip2, --bunzip2 ] [ -Z, --compress, --uncom-
press ] [ -z, --gzip, --ungzip ] [ --use-compress-
program PROG ] [ --block-compress ] [ -[0-7][lmh] ]

filename1 [ filename2, ... filenameN ]

directory1 [ directory2, ...directoryN ]
Tons of options !!!!
  #4 (permalink)  
Old 01-22-2002
kapilv kapilv is offline
Registered User
  
 

Join Date: Nov 2000
Location: India
Posts: 83
Hi

MultiVolume backups can be done with tar but ufsdump can be thought of as an another option.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0