Sponsored Content
Full Discussion: multi tape option in tar cmd
Operating Systems Linux Red Hat multi tape option in tar cmd Post 302566378 by galanom on Thursday 20th of October 2011 09:01:44 AM
Old 10-20-2011
Hi,
Unfortunately tar does not support splitting of archive.
You have to do this by hand, using split (man 1 split)

Code:
split -b600GB in out.

This produces volumes of 600GB.
Notice that with "GB" we mean decimal GB (10^9), while -b600G would mean binary GB (GiB, 2^30).

Alternatively:
Code:
split -n3 in out.

Chops file to three pieces.

Then, at restore, join them with:
Code:
cat out.*>restored

ps: Never used a tape. I assume that with backup software you can put the out.aa out.ab etc each of them to one tape. Don't try to untar them while chopped!!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

tar to tape and back

Howdy, I'm trying to tar some directories to tape and then extract them from tape on another machine. I was hoping someone could help me with the syntax of the tar commands. Both machines are running Solaris 8. Need to get all files and directories under the following: ... (6 Replies)
Discussion started by: pmetal
6 Replies

2. UNIX for Dummies Questions & Answers

tar command with compress option...

Hi ! i have to write a script that archivs homes not used since 3 years. First, my script gathers the users that are concerned, using the following command : ll -lt /home/*/.sh_history | egrep '2000|1999|1998|1997' | awk '{print $3}' i obtain a list like this : user_1 user_2 ...... (3 Replies)
Discussion started by: tomapam
3 Replies

3. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

4. UNIX for Dummies Questions & Answers

Is there nobody who's sucessfully used tar -G option???

Has anyone you know ever used the -G --incremental option successfully with the tar command? I'm not talking about the little -g --listed-incremental option. I don't want incremental backups. Just one differential backup which is what the -G is for. The -G command is supposed to make a single... (1 Reply)
Discussion started by: protienplant
1 Replies

5. Shell Programming and Scripting

tar: unable to specify archive name with -p option

Hi, When I use -p option(preserve permissions) while creating tar archives, it throws error and creates archive in the name of 'p'. But without -p option I am able to create archive name as I mentioned. how do I work it out with --preserve-permissions? Any help is much appreciated. ... (3 Replies)
Discussion started by: learn more
3 Replies

6. Shell Programming and Scripting

tar cmd how many arguments into parameters of filenames

Hi I would like to use tar cmd in my script. I have a variable with filenames, e.g. 1000 records and I would like to paste its values into tar cmd. For this example I used three elements variable strings. strings="file1.txt file2.txt file3.txt" `tar cf file1.tar $strings` Whether... (1 Reply)
Discussion started by: presul
1 Replies

7. Red Hat

Multi OS option

Hi, We will purchase redhat enterprise WS. We want to use Windows and Redhat in same machine. For this purpose , should we buy Redhat with Multi OS option? Or Is it just for virtualization..? (I couldnt be sure) Regards... (3 Replies)
Discussion started by: titanic
3 Replies

8. UNIX for Advanced & Expert Users

Multi-Volume tar archives. [solved]

Hi, The only off-line storage medium I have is DVD. I am trying to back up around 10G of data and if I can achieve a practical solution I will use it more generally. I am currently considering something along the lines of: tar --create --multi-volume --tape-length=nnnn <pathspec> |... (0 Replies)
Discussion started by: MikeGM
0 Replies

9. UNIX for Dummies Questions & Answers

cmd find: exclude directory when using option -depth

hello, i want to use "-depth" in command "find" and want to exclude a directory. the find command should work in HP-UX and Linux. i see in the find man page: -prune If -depth is not given, true; do not descend the current directory. If -depth is given, false; no effect. -depth... (3 Replies)
Discussion started by: bora99
3 Replies

10. Shell Programming and Scripting

Help with tar cmd for directories

Hi, I'm working on HP-UX B.11.23 64bit. I tried to tar couple of directories but failed to do so. $ tar -cvf tar_file_name -C /dir1 /dir2 the -C is for directories as mentioned in the man pages. But still unable to create a tar file having directories and sub-directories. Requesting help in... (1 Reply)
Discussion started by: sam_bd
1 Replies
CH(4)							   BSD Kernel Interfaces Manual 						     CH(4)

NAME
ch -- SCSI media changer driver SYNOPSIS
ch* at scsibus? target ? lun ? DESCRIPTION
The ch driver is essentially an ioctl(2) interface to a robot on a SCSI bus - a device that will change media (e.g. tapes, CD-ROMs, etc) in and out of drives for that media. The chio(1) utility program uses this interface to manipulate such robots. FILES
/dev/chu SCSI bus media changer unit u /usr/include/sys/chio.h DIAGNOSTICS
ch%d: waiting %d seconds for changer to settle... Some changers require a long time to settle out, to do tape inventory, for instance. ch%d: offline The changer is not responding. ch%d: warning, READ ELEMENT STATUS avail != count ch%d: could not sense element address page ch%d: could not sense capabilities page SEE ALSO
chio(1), ioctl(2), cd(4), intro(4), scsi(4), st(4) AUTHORS
Jason R. Thorpe BSD
June 10, 1998 BSD
All times are GMT -4. The time now is 04:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy