Sponsored Content
Full Discussion: problem with tar
Top Forums UNIX for Advanced & Expert Users problem with tar Post 302174555 by ajcannon on Tuesday 11th of March 2008 12:03:01 PM
Old 03-11-2008
Hello again,

this is beginning to drive me nuts.

I have opened up the permissions on the target dir (definied via a -C switch in the tar command) and it still moans about utime (tar: code: Cannot utime: Operation not permitted).

Can anyone give me an idea about what permissions are expected for utime to be happy?

BR

Alastair
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tar Problem

I need to do a bakcup for some files, in the same tape but in diferente time.... at 9am i need the file /public/test1.txt then... tar -cvf /dev/st0 /public/test1.txt at 12pm i need the file /public/test2.txt the.... tar ¿? /public/test2.txt in this point i have problem beacuse when... (3 Replies)
Discussion started by: sokobans
3 Replies

2. UNIX for Advanced & Expert Users

tar problem

hi , On AIX 4.3.3 I typed the following command tar -cvf <filename> ( actually I forgot to type the device name) the output was change in the file size to 10240 bytes I tried tar -xvf to extract the same but file size is same. The file was "txt" file and was readable before the... (2 Replies)
Discussion started by: amit
2 Replies

3. UNIX for Advanced & Expert Users

tar problem

Can someone please verify for me if tar compresses the directory or filesystem it is asked to back up?? reason am asking is I checked the size of the /home directory before running a tar command now, after I ran the tar command and the tar was done extracting the directory from the archive, I... (2 Replies)
Discussion started by: TRUEST
2 Replies

4. UNIX for Advanced & Expert Users

tar problem

I am using a tar command to backup my system. It works properly. I have had some trouble and I need to restore a few files. I am using the following command : tar xvf /dev/rmt2h myfile_to_restore The tar command seemd to work but after a long time I got the following error message :... (6 Replies)
Discussion started by: renard
6 Replies

5. Shell Programming and Scripting

tar doubts - problem with tar

The below tar command works fine for me, tar -cvf - `find ./srcdir -type d` | (cd ./destdir ; tar -xvf - ) but this version is giving error to me: cd ./srcdir && tar -cf - . | gzip -9 | cd ../destdir && gzip -d | tar -xf - error is: gzip: compressed data not read from a terminal.... (2 Replies)
Discussion started by: royalibrahim
2 Replies

6. UNIX for Dummies Questions & Answers

Tar problem

I've done a tar -cvf data.tar * in our live data directory on a Solaris machine. I copy the tar file to the test area and try tar -xvf data.tar . and it uses the full path in the tar file and overwrites the live ones again. I've used tar many a time and don't understand why its happening.... (1 Reply)
Discussion started by: kinhell
1 Replies

7. Shell Programming and Scripting

problem is tar

i have some 685 files in my directory.Below the count: find . -name "CurrentCollectorMeterReadBackup_2009*" -exec ls -ltr {} \; | wc -l 685 i want to tar them but it is telling me arg list too long. how to tar all this files in one shot tar -cvf - -L... (1 Reply)
Discussion started by: ali560045
1 Replies

8. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

9. Linux

tar problem

can someone help me here. apparently, the colon i included in the name of this file is making it difficult for tar to untar it. please help ####### tar xvf DailyConfigs_Nov-19-11\:00-2009.tar rsh: DailyConfigs_Nov-19-11: Name or service not known tar: DailyConfigs_Nov-19-11\:00-2009.tar:... (4 Replies)
Discussion started by: SkySmart
4 Replies

10. 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
tar_extract_file(3)						  C Library Calls					       tar_extract_file(3)

NAME
tar_extract_file, tar_extract_regfile, tar_extract_hardlink, tar_extract_symlink, tar_extract_chardev, tar_extract_blockdev, tar_extract_dir, tar_extract_fifo, tar_skip_regfile, tar_set_file_perms - extract files from a tar archive SYNOPSIS
#include <libtar.h> int tar_extract_file(TAR *t, char *realname); int tar_extract_regfile(TAR *t, char *realname); int tar_skip_regfile(TAR *t); int tar_extract_dir(TAR *t, char *realname); int tar_extract_hardlink(TAR *t, char *realname); int tar_extract_symlink(TAR *t, char *realname); int tar_extract_blockdev(TAR *t, char *realname); int tar_extract_chardev(TAR *t, char *realname); int tar_extract_fifo(TAR *t, char *realname); int tar_set_file_perms(TAR *t, char *realname); VERSION
This man page documents version 1.2 of libtar. DESCRIPTION
The tar_extract_file() function acts as a front-end to the other tar_extract_*() functions. It checks the current tar header associated with the TAR handle t (which must be initialized first by calling th_read()) to determine what kind of file the header refers to. It then calls the appropriate tar_extract_*() function to extract that kind of file. The tar_skip_regfile() function skips over the file content blocks and positions the file pointer at the expected location of the next tar header block. The tar_set_file_perms() function sets the attributes of the extracted file to match the encoded values. This includes the file's modifi- cation time, mode, owner, and group. This function is automatically called by tar_extract_file(), but applications which call the other tar_extract_*() functions directly will need to call tar_set_file_perms() manually if this behavior is desired. RETURN VALUES
On successful completion, the functions documented here will return 0. On failure, they will return -1 and set errno to an appropriate value. The tar_extract_dir() function will return 1 if the directory already exists. ERRORS
The tar_extract_file() function will fail if: EEXIST If the O_NOOVERWRITE flag is set and the file already exists. The tar_extract_*() functions will fail if: EINVAL An entry could not be added to the internal file hash. EINVAL Less than T_BLOCKSIZE bytes were read from the tar archive. EINVAL The current file header associated with t refers to a kind of file other than the one which the called function knows about. They may also fail if any of the following functions fail: mkdir(), write(), link(), symlink(), mknod(), mkfifo(), utime(), chown(), lchown(), chmod(), or lstat(). SEE ALSO
mkdir(2), write(2), link(2), symlink(2), mknod(2), mkfifo(2), utime(2), chown(2), lchown(2), chmod(2), lstat(2) University of Illinois Jan 2001 tar_extract_file(3)
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy