I am taking a backup of area with the following command:-
tar -cf -./* |/usr/contrin/bin/gzip >xxx.tar.gz.
The area contains following files :-
xxxx
yyyy
zzzzz
asdaD
DASdD
WQWEE
I want to backup all the files except yyyy from the following area.
I checked manual page of tar but I... (2 Replies)
I have a Linux email server, I want to backup all /home /var... by tar command and copy to my PC for backup everyweek. The Linux serve rhave ftp function.
Is there any program to help backup my file? any url welcome
many thank. (8 Replies)
I am faced with a situation where I have directories of gunzipped contents bundled into a tar file. It might look something like this.
x coop/batch/bin/ha90x20.gz, 632641 bytes, 1236 tape blocks
x coop/batch/icm/HA90X20.icm.gz, 1821 bytes, 4 tape blocks
x coop/batch/aeenv.gz, 4117 bytes, 9 tape... (2 Replies)
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)
Hi,
Another rookie here.
I have a script I am developing to backup files from various directories onto a windows machine.
Script description:
- mv files from various directories
- tar all files in that directory
- export to windows server for safe keeping, external backups.
The... (5 Replies)
Hi fellows,
Can you please share any command with which I can list down the file names inside a tar.gz file.
I have tried with these possibilities but in vain.
bash-3.00$ tar -ztvf file.tar.gz
tar: z: unknown function modifier
bash-3.00$ tar ztvf file.tar.gz
tar: z: unknown function... (1 Reply)
Hi All
I have searched the possibility of this options everywhere but am unable to find it in any forum.
I have a tar file inside which there are n number of files and i dont know them. I need to grep a word inside the tar file and need to know in which file the word resides.
> cat a... (2 Replies)
Hi,
I'm using a tar command
tar -xOvf /home/mytar.tar
My intention is to extract data in files which are inside various directories,
without extracting files to the disk.
Is this the best way to achieve it?
Thanks,
Chetan (3 Replies)
Hi All,
I would like to know couple of ways to list the content available in tar and gzipped file without extracting.
i.e., I would like to display the contents of test.tar.gz without extracting.
Note :: please suggest a command other that tar -ztvf (9 Replies)
I want to create a tar file that backup all my recent work. I have no idea how Tar file works and I am new to Unix Please help (1 Reply)
Discussion started by: GGBEASTBOI
1 Replies
LEARN ABOUT CENTOS
tar_extract_glob
tar_extract_all(3) C Library Calls tar_extract_all(3)NAME
tar_extract_all, tar_extract_glob, tar_append_tree - high-level tar archive manipulation functions
SYNOPSIS
#include <libtar.h>
int tar_extract_all(TAR *t, char *prefix);
int tar_extract_glob(TAR *t, char *globname, char *prefix);
int tar_append_tree(TAR *t, char *realdir, char *savedir);
VERSION
This man page documents version 1.2 of libtar.
DESCRIPTION
The tar_extract_all() function extracts all files from the tar archive associated with the TAR handle t into the path named by the prefix
argument.
The tar_extract_glob() function extracts all files matching the given glob pattern from the tar archive associated with the TAR handle t
into the path named by the prefix argument.
The tar_append_tree() function appends all files from the directory tree named by realdir to the tar archive associated with the TAR handle
t. The pathnames stored in the tar archive are modified by replacing realdir with savedir, so that the files will be extracted into
savedir.
RETURN VALUES
On successful completion, these functions will return 0. On failure, they will return -1 and set errno to an appropriate value.
ERRORS
These functions will fail under the same conditions that the tar_skip_regfile(), tar_extract_regfile(), opendir(), lstat(), or
tar_append_file() functions fail.
SEE ALSO opendir(2), lstat(2), tar_skip_regfile(3), tar_extract_regfile(3), tar_append_file(3)University of Illinois Jan 2001 tar_extract_all(3)