10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I was attempting to run a backup at our business last Friday evening when I apparently locked up our whole mainframe. Rather than observing the current time and adding a minute or two to that for the backup start time (like I typically would), I accidentally entered the actual current time to the... (11 Replies)
Discussion started by: hometrics
11 Replies
2. Shell Programming and Scripting
Hi everyone;
I need to create a shell script for full and incremental backup purposes. for incremental backup only for one folder (test1) located in /home/test1 syntax below works fine and have no problem: tar -cvf /home/backup/backup-0.tar.gz -g /home/test1/test.snar /home/test Problem is here... (5 Replies)
Discussion started by: momed131
5 Replies
3. SCO
hi guys
im beginner in unix and have many problem with this.
i have one old machine that Sco unix OpenServer 5.0.7 installed on it.
i wana backup from all partition of hard disk and restore it on another unix machine. how can i do that ?
thing like hard to hard for windows !!!
i only know how... (14 Replies)
Discussion started by: farzad226
14 Replies
4. SCO
hi guys
im beginner in unix and have many problem with this.
i have one old machine that Sco unix OpenServer 5.0.7 installed on it.
i wana backup from all partition of hard disk and restore it on another unix machine. how can i do that ?
thing like hard to hard for windows !!!
i only know how... (1 Reply)
Discussion started by: farzad226
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I need to create a tar file with a list of files from a directory.
The directory has about 1000+ files of which I only need to create a tar ball of 150 files. The 150 files I need in the tar ball do not have common names or a common start letter.
No two file names match, example: 1st... (3 Replies)
Discussion started by: babyPen1985
3 Replies
6. UNIX for Advanced & Expert Users
I'm trying to do a incremental backup for a big NFS. Since space is not an issue, I don't want to compress them or end up with a big tarball for full backup( and a series of small tarballs for incremental backup). Basically I want the TAR backup/restore functionality but not TAR files up.... (3 Replies)
Discussion started by: overmindxp
3 Replies
7. Windows & DOS: Issues & Discussions
I have a folder /root/test in a centos 5.3 system. I want to take an incremental backup of the contents of the folder in the C:\Downloads folder of a windows system present in the same lan as the linux system. What are the ways of executing this plan? Kindly help (0 Replies)
Discussion started by: proactiveaditya
0 Replies
8. Shell Programming and Scripting
Hi,
I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file.
I have the following, but it doesn't backup the inside files of the directory.
#!/bin/bash
tar -czf... (1 Reply)
Discussion started by: agasamapetilon
1 Replies
9. UNIX for Dummies Questions & Answers
Hi All..
i am trying to write a script which will give the incremental tar backup of all files with latest timestam.
i tried with find -mmin -2
but if it takes half on hour or something to creat the tar itself, then no meaning in using the above command.
so please help me to find the... (2 Replies)
Discussion started by: Usha Shastri
2 Replies
10. Shell Programming and Scripting
Hello everyone!
I'm trying to make incremental tar archives of a folder for an example. On the box I use is UNIX AIX installed. I tried some sample codes I found on several web pages but with no success. Don't know what I'm doing wrong. Please write some sample code to make incremental tar... (0 Replies)
Discussion started by: Funky_ass
0 Replies
th_get_pathname(3) C Library Calls th_get_pathname(3)
NAME
th_get_pathname, th_get_uid, th_get_gid, th_get_mode, th_get_crc, th_get_size, th_get_mtime, th_get_devmajor, th_get_devminor,
th_get_linkname - extract individual fields of a tar header
TH_ISREG, TH_ISLNK, TH_ISSYM, TH_ISCHR, TH_ISBLK, TH_ISDIR, TH_ISFIFO - determine what kind of file a tar header refers to
TH_ISLONGNAME, TH_ISLONGLINK - determine whether the GNU extensions are in use
SYNOPSIS
#include <libtar.h>
char *th_get_linkname(TAR *t);
char *th_get_pathname(TAR *t);
mode_t th_get_mode(TAR *t);
uid_t th_get_uid(TAR *t);
gid_t th_get_gid(TAR *t);
int th_get_crc(TAR *t);
off_t th_get_size(TAR *t);
time_t th_get_mtime(TAR *t);
major_t th_get_devmajor(TAR *t);
minor_t th_get_devminor(TAR *t);
int TH_ISREG(TAR *t);
int TH_ISLNK(TAR *t);
int TH_ISSYM(TAR *t);
int TH_ISCHR(TAR *t);
int TH_ISBLK(TAR *t);
int TH_ISDIR(TAR *t);
int TH_ISFIFO(TAR *t);
int TH_ISLONGNAME(TAR *t);
int TH_ISLONGLINK(TAR *t);
VERSION
This man page documents version 1.2 of libtar.
DESCRIPTION
The th_get_*() functions extract individual fields from the current tar header associated with the TAR handle t.
The TH_IS*() macros are used to evaluate what kind of file is pointed to by the current tar header associated with the TAR handle t.
The TH_ISLONGNAME() and TH_ISLONGLINK() macros evaluate whether or not the GNU extensions are used by the current tar header associated
with the TAR handle t. This is only relevant if the TAR_GNU option was used when tar_open() was called.
SEE ALSO
tar_open(3)
University of Illinois Jan 2001 th_get_pathname(3)