Sponsored Content
Top Forums Shell Programming and Scripting Backingup larger files with TAR command Post 302940752 by MadeInGermany on Wednesday 8th of April 2015 05:13:32 PM
Old 04-08-2015
mknod provides device nodes - certainly not useful here.
It seems this AIX tar cannot open files bigger than 2GB?
Then upgrade/patch it. If not possible, install GNU tar (gtar).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using tar command to copy files?

hi, can i use the tar command to copy an entire directory and its content in another folder? What is the proper syntax? thx (2 Replies)
Discussion started by: tomapam
2 Replies

2. Solaris

TAR command , listing backed up files

I've backed up several files to tape using tar, and wish to list those that have backed up. % tar cvf /dev/rmt/2un /s_1/oradata/pgpub/config.ora a /s_1/oradata/pgpub/config.ora 2 tape blocks But when I go to list the files: % tar tvf /dev/rmt/2un tar: tape read error What am I... (3 Replies)
Discussion started by: FredSmith
3 Replies

3. Shell Programming and Scripting

Modifying command for Tar.gz Files.

:) Hi, I use the following command to search for a string in all the files in the directories and sub directories. find . -type f -print | xargs grep bermun@cial.net Can someone please cite a method wherin I can find the entries from a list of 300-500 *.gz files by modifying the above... (2 Replies)
Discussion started by: openspark
2 Replies

4. AIX

Tar files larger than 2GB

Hi, Does anyone know if it is possible to tar files larger than 2GB? The reason being is they want me to dump a single file (which is around 20GB) to a tape drive and they will restore it on a Solaris box. I know the tar have a limitation of 2GB so I am thinking of a way how to overcome this.... (11 Replies)
Discussion started by: depam
11 Replies

5. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

6. Shell Programming and Scripting

Single command - unzip files from a tar command

I have a tar file that contains multiple .Z files. Hence I need to issue a tar command followed by a gzip command to fully extract the files. How do I do it in a single command? What I'm doing now is tar xvf a.tar (this will output 1.Z and 2.Z) gzip -d *.Z (to extract 1.Z and 2.Z) (9 Replies)
Discussion started by: ericlim
9 Replies

7. UNIX for Dummies Questions & Answers

How to tar files of different extensions in one command

Linux RHEL 5.4 It is easy to create a tarball when you have files same extension For eg: You want to tar all files with the extension .log . This is easy tar -cvf diagnose.tar *.log I have two files with different extensions .log and .sh : error.log myscript.sh I want to create a... (5 Replies)
Discussion started by: John K
5 Replies

8. Solaris

Command to remove existing files in the tar files in Solaris 10

Hi, I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios. 1)How to delete the existing files in the tar file. suppose i have a main tarfile named application.tar and it contains a file called ingres.tar. what is the command to remove ingres.tar... (2 Replies)
Discussion started by: muraliinfy04
2 Replies

9. UNIX for Dummies Questions & Answers

Tar command not taring all files

I am just creating tar.gz file with comand tar -zcvf xyz.tar.gz /home/xyz/* xyz folder contains thousands of files mostly .c, .cpp, etc.. I see that many times all the files are not zipped. Many files(in hundreds) are abruptly left out. What may be the reason for this and how to resolve... (10 Replies)
Discussion started by: rupeshkp728
10 Replies

10. UNIX for Dummies Questions & Answers

7z command for files larger than 4GB ( unzip doesn't work)

My unzip command doesn't work for files that are greater than 4GB. Consider my file name is unzip -p -a filename.zip, the command doesn't work since the size of the file is larger. I need to know the corresponding 7z command for the same. This is my Unix shell script program: if then ... (14 Replies)
Discussion started by: chandraprakash
14 Replies
APT-ZIP(8)																APT-ZIP(8)

NAME
apt-zip-list, apt-zip-inst - Use apt with removable media SYNOPSIS
apt-zip-list [ --help ] [ --version ] [ --medium=mountpoint ] [ --aptgetaction=action ] [ --packages=package[,package...] ] [ --fix-broken ] [ --skip-mount ] [ --method=method ] [ --options=opt[,opt...] ] [ --accept=accept[,accept...] | --reject=reject[,reject...] ] apt-zip-inst [ --help ] [ --version ] [ --medium=mountpoint ] [ --aptgetaction=action ] [ --packages=package[,package...] ] [ --fix-broken ] [ --skip-mount ] DESCRIPTION
This manpage should be up-to-date with version 0.17 of the programs. The apt-zip-list and apt-zip-inst commands simplify the upgrade process of a non-networked Debian host using apt(8), by using (preferably high-capacity) removable media, like a ZIP drive. apt-zip-list produces two files. One is a script that can be used on another host (maybe not running a Debian system) to fetch packages previously selected in dselect(8) or indicated in the command line, the other apt-zip.options saves the options used by apt-zip-list to indicate to apt-zip-inst what action to perform and/or which packages to install. Various types of scripts can be generated, by specifying a fetch method supported by the host that will fetch the packages. If you prefer, the script may generate a tarball containing the fetched packages. Note that apt-zip-list can be called as a non-root user. The name of the script (as well as the name of the tarfile when using the tar option) contains the name of the Debian host for which the packages are to be fetched. Thus you can, using the same medium, upgrade several hosts at the same time, provided you have enough space on this disk. This should work with or without the tar option. The script is written to the removable medium, which is mounted if necessary, and then restored to the original unmounted state when appli- cable. It is the responsibility of the user then to run the script on a host that will fetch the packages, and to have them (or the gener- ated archive) copied to the removable medium. When back on your Debian host, you just run apt-zip-inst, which will take care of the script-produced files, and call apt(8) to install the packages on your disk. OPTIONS
COMMON OPTIONS --help, -h Show summary of options. --version, -V Show version of program. --medium, -m Select a removable medium other than the site default. See also --skip-mount. --aptgetaction, -a Select the action done by apt-get. Possible actions are dselect-upgrade,upgrade and dist-upgrade. If --packages is not set the default is dselect-upgrade (See also apt-zip.conf), if it is set none is selected. --packages, -p Comma-separated list of extra packages to install. --fix-broken, -f Run apt-get with the --fix-broken option. See apt-get(8) for more details. --skip-mount, -s Allow specifying a non-mountpoint directory to the --medium option. This may help on laptops only getting point-to-point networking without being routed to. This is also useful while testing the program, as it allows sending the script into /tmp. --use-sleep=SEC, -S Introduces waiting times between downloaded files. Allows the genearation of a fetch script that will wait some time (config- urable). The number parameter represents the delay between consecutive dowloads. Note that this option is safe: even if the con- nected machine does not have a wait command, the script will not fail. --no-checksum, --no-md5, -5 This option will command to apt-zip-list to create a script which does not make any sha256sum checks. Note that if this option is not given at script generation time, the sha256sum command will be called only after it has been found in the system. (--no-md5 is maintained for script compatibility, but there is only sha256) OPTIONS FOR APT-ZIP-LIST --method, -M Select a method other than the default one. The wget and wget-dos methods are currently supported. --options, -o Specifies a set of options to be used while generating the script. A warning is issued only if an option is unkown to apt-zip-list, but all known options may not be supported by all methods. Options may be given a value, with the option=value syntax. Currently available options include: tar[=gnutarprogram] causes the dowloaded files to be grouped into a tarball. The name of a tar program on the download machine can be specified, if different from tar. Example: tar=gtar. When used in conjunction with the restart option, a GNU tar must be specified, so that 2 tarballs man be concatenated - this is only needed on the 3rd and subsequent runs of the fetch script. restart causes the downloaded files to be grouped into a tarball. --accept , -A / --reject , -R Comma-separated list of accepted/rejected protocols for download. By default are only accepted http and ftp. CONFIG FILE
The /etc/apt/apt-zip.conf file can be used to set defaults: method, removable medium, options, apt-get action and accepted/rejected proto- cols. It is a self-explainatory bourne-shell script snippet. It allows to provide site defaults for command-line options. METHOD API
A method is handled by an executable object (usually a script) placed in the /usr/share/apt-zip/methods/ directory. This executable is fed on standard input with the output of apt-get --print-uris. It is communicated the state of requested options using for each option an environment variables named OPTION_OPTNAME, where OPTNAME is the uppercased name of an option. Additional environment variables are also set, such as APTZIPVERSION, APTZIPTARFILE, APTZIPINSFILE, and OPTIONS. LIMITATIONS
o Only one disk can be used. If your packages do not fit on one, you have to deselect some packages using dselect(8) or you have to select a suitable list of package. o The files on an Internet distribution site can change rather frequently. It is up to the user to make sure the site was not updated between the build of the fetch script by apt-zip-list and the fetch itself, otherwise some required files may not be possible to fetch. FILES
/etc/apt/apt-zip.conf /usr/share/apt-zip/methods/ BUGS
o The restart feature is really slow. The tar command on Solaris(tm) has an option to seek in the file instead of assuming a non-seekable device, which greatly improves performance. GNU tar does not seem to be able to do that. o Virtually no error-checking is done. Examples of such error conditions include: - out-of-diskspace on both the removable medium and in apt archive cache when using tar option. o Somewhat consequently, error-recovery also nears non-existence. As examples, an interrupted fetch in tar mode has to be restarted from zero; changes in status file between runs of apt-zip-list and apt-zip-inst are not detected and may lead to failure. AUTHOR
The programs were written by YannDirson <dirson@debian.org>. It was maintained previously by SantiBejar <tiarda@yahoo.es>, and currently maintained by GiacomoCatenazzi <cate@debian.org> for the Debian GNU/Linux system. The source for this reference page is an SGML file, which can be converted to UNIX manpages using docbook2man(1) SEE ALSO
apt(8), apt-get(8), dselect(8). Debian GNU/Linux 01 February 2008 APT-ZIP(8)
All times are GMT -4. The time now is 10:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy