Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

archive_read_new(3) [centos man page]

ARCHIVE_READ_NEW(3)					   BSD Library Functions Manual 				       ARCHIVE_READ_NEW(3)

NAME
archive_read_new -- functions for reading streaming archives LIBRARY
Streaming Archive Library (libarchive, -larchive) SYNOPSIS
#include <archive.h> struct archive * archive_read_new(void); DESCRIPTION
Allocates and initializes a struct archive object suitable for reading from an archive. NULL is returned on error. A complete description of the struct archive object can be found in the overview manual page for libarchive(3). SEE ALSO
tar(1), libarchive(3), archive_read_data(3), archive_read_filter(3), archive_read_format(3), archive_read_set_options(3), archive_util(3), tar(5) BSD
February 2, 2012 BSD

Check Out this Related Man Page

ARCHIVE_READ_HEADER(3)					   BSD Library Functions Manual 				    ARCHIVE_READ_HEADER(3)

NAME
archive_read_next_header, archive_read_next_header2 -- functions for reading streaming archives LIBRARY
Streaming Archive Library (libarchive, -larchive) SYNOPSIS
#include <archive.h> int archive_read_next_header(struct archive *, struct archive_entry **); int archive_read_next_header2(struct archive *, struct archive_entry *); DESCRIPTION
archive_read_next_header() Read the header for the next entry and return a pointer to a struct archive_entry. This is a convenience wrapper around archive_read_next_header2() that reuses an internal struct archive_entry object for each request. archive_read_next_header2() Read the header for the next entry and populate the provided struct archive_entry. RETURN VALUES
These functions return ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN (the operation succeeded but a non-critical error was encountered), ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the operation failed but can be retried), and ARCHIVE_FATAL (there was a fatal error; the archive should be closed immediately). ERRORS
Detailed error codes and textual descriptions are available from the archive_errno() and archive_error_string() functions. SEE ALSO
tar(1), libarchive(3), archive_read(3), archive_read_data(3), archive_read_extract(3), archive_read_filter(3), archive_read_format(3), archive_read_open(3), archive_read_set_options(3), archive_util(3), tar(5) BSD
February 2, 2012 BSD
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

segmenting tar archives

assuming i need to create a tar archive which would turn out to be bigger than 2gb, how could i segment the archive into say, 1 gb parts? (3 Replies)
Discussion started by: crudealien
3 Replies

2. UNIX for Dummies Questions & Answers

Archive (tar)

Hi, I want to archive below directories ex: /home/oracle/ddd0 /home/oracle/ddd1 /home/oracle/ddd2 I want a command(tar) which will let me archive the above directories excluding *.dmp(dump files), *.log(log files) in those directories. So the archived file doesn't have... (4 Replies)
Discussion started by: dreams5617
4 Replies

3. Shell Programming and Scripting

how to find some dir

hi everybody, i have dir structure like this, . ./processed ./results ./archive ./archive/processed ./archive/results ./archive/logs ./archive/decisions ./archive/error ./logs ./inbox ./decisions ./progress ./outbox ./config ./error (12 Replies)
Discussion started by: manas_ranjan
12 Replies

4. UNIX for Dummies Questions & Answers

wildcards NOT

Hi All Please excuse another straightforward question. When creating a tar archive from a directory I am attempting to use wildcards to eliminate certain filetypes (otherwise the archive gets too large). So I am looking for something along these lines. tar -cf archive.tar * <minus all *.rst... (5 Replies)
Discussion started by: C3000
5 Replies

5. Shell Programming and Scripting

Tar archive issue

Hi, I make a tar archive: tar -czvf /path_to/cucu.tar.gz /path/dir_to_archive/ In the archive the /path/dir_to_archive/ is maintained for every file. I need that the archive to be made without the /path/dir_to_archive/ to contain only the files in /path/dir_to_archive/. Thanks,... (4 Replies)
Discussion started by: potro
4 Replies

6. Shell Programming and Scripting

Generic Shell Script to Archive a file

Would appreciate if any one can paste a generic schell script to archive a file with date stamp by passing the file with fullpath as parameter For Eg. /apps/scripts/Archive_File.sh /data_home/project_home/file.txt this should place the file in the following directory ... (8 Replies)
Discussion started by: mak1600
8 Replies

7. Shell Programming and Scripting

Converting Huge Archive into smaller ones

I have a 13G gz archive... The problem is that when I expand it, it goes to 300G and I don't have so much of hdd space. The file is a one huge file: rrc.tar.gz. What I want to do is to extract the archive but at each step gzip the resulting file. So, if gunzip -c rrc00.tar.gz | tar -xvf - ... (9 Replies)
Discussion started by: Legend986
9 Replies

8. UNIX for Dummies Questions & Answers

Tar Help

Hi Unix Gurus, I would like to seek some advises regarding tar. I've received this error: tar: The getwd subroutine failed. Cannot open the parent directory. when i try to tar some files in the directory. Is this something to do with the file permission of the parent... (8 Replies)
Discussion started by: lweegp
8 Replies

9. Programming

read file from tar.gz archive

I want to write a c-program which reads a textfile from a tar.gz archive. How can I do it? (9 Replies)
Discussion started by: krylin
9 Replies

10. 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

11. Shell Programming and Scripting

Problem to read archive

Dear all, I have this archive: cat file.txt archive test 02 sequence 03 02length 52 archive test 02 sequence 04 02length 52 archive test 02 sequence 05 02length 52 teste arquivo 06 sequencia 08 06 length 54 teste arquivo 06 sequencia 09 ... (8 Replies)
Discussion started by: cewa67
8 Replies

12. Shell Programming and Scripting

Extracting from archive | compressing to new archive

Hi there, I have one huge archive (it's a system image). I need sometime to create smaller archives with only one or two file from my big archive. So I'm looking for a command that extracts files from an archive and pipe them to another one. I tried the following : tar -xzOf oldarchive.tgz... (5 Replies)
Discussion started by: chebarbudo
5 Replies

13. Solaris

USTAR tar archive

Hello Admins, I am facing an issue with ustar tar archive on solaris 10. By mistake I have created ustar tar archive of /var/adm/messages file on solaris10. I am trying to untar the /var/adm/messages file . but I am not getting the original text messages file. I user tar -xvf ... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

14. Shell Programming and Scripting

Create unique tar archives from a list of directories

I'm looking to archive a client directory from a CIFS share There are multiple directories that will be stored in a text file and I'm looking to create an individual tar archive of each folder in the directory. I've tried a number of commands to no avail. Here's what I would like. ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

15. UNIX for Dummies Questions & Answers

Archive won't move

I' writing a script trying to archive the oldest two directories from one place, tar them, and move them to another. #!/bin/bash cd (/dir/with/dirforarchiving) ARCHIVE=(/temp/dir/) FIND=$(find . -maxdepth 1 -type d) ARRAY=(`ls ${FIND} -ltd | tail -2`) names=(${ARRAY} ${ARRAY})... (4 Replies)
Discussion started by: jrymer
4 Replies