05-31-2010
yep... ok... here goes nothing...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am trying to write to a dat tape, using HP UX 10.20
tar: cannot open /dev/dat
not mounted ?
ioscan ? if so, then where ?
suggestions ?
thanks
simon (6 Replies)
Discussion started by: simon2000
6 Replies
2. HP-UX
I made tar file having file names more character( up to 50).
When i extract file in Linux it extracts fine.. but in HPUX all file name which are more than 24 are trimed to 24 characters.
i m using "tar -xvf xx.tar"
i read some O and N option for New posix and Old but didnt got. :confused:
... (2 Replies)
Discussion started by: ajayyadavmca
2 Replies
3. Shell Programming and Scripting
frnds,
I compressed some files on the basic of $date var.
$date contains todays date in some specific format..
also my files are in different directories...
now, I m doing.
tar -cvf archive.tar /root/abc/*$date* /root/wxv/123/*$date* /var/*$date*
this creates archive.tar for me.. ... (4 Replies)
Discussion started by: clx
4 Replies
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
I am trying to implement the below command in my shell script
su - $PROCESS -c `tar -tvf $file|tee -a $LOG/$file.log`
The idea is to get the tar output on the screen and at the same time it should put the output in the log file.
Problem is:
1) I donot get the output on the screen.
2)... (3 Replies)
Discussion started by: kpatel786
3 Replies
6. Shell Programming and Scripting
Hi all,
I have couple of files I need to tar and put in some client server could some body help me the basic understanding of tarring files please It would be a great help.
regards
Anwar (4 Replies)
Discussion started by: Haque123
4 Replies
7. UNIX for Advanced & Expert Users
Hi,
I want to tar files and zip them in order to clean up space in directory. I have files like /path/file1 /path file2.
What I am trying to do is:
Option 1:
tar -cvf /path/file1 /path file2 | gzip > test.tar.gz
I got the file created. But while trying to extract the Tar and zipped file, I... (1 Reply)
Discussion started by: Quesemail
1 Replies
8. Shell Programming and Scripting
I have written a below script to untar the tar files from /tmp/tarfiles/ directory.
# cat /tmp/tarfiles/script.sh
#!/bin/sh
cd /tmp/tarfiles/
TFL="tar_files_list.txt"
TCF="tar_completed_list.txt"
ls -l *.tar | awk '{print $9}' > $TFL
for i in `cat $TFL`
do
if
then
for j in... (2 Replies)
Discussion started by: thomasraj87
2 Replies
9. Shell Programming and Scripting
In AIX 5.3,
I have these directories:
/lms
/lms/w_standard
/lms/d_admin
/lms/b_common
/lms/b_prodbus
/lms/d_prod
/lms/d_prod/ccldir
/lms/d_prod/ccluserdir
/lms/d_prod/config
/lms/d_prod/data
/lms/d_prod/log
/lms/d_prod/ocd
/lms/d_prod/print
/lms/d_prod/temp
/lms/reg... (7 Replies)
Discussion started by: Daniel Gate
7 Replies
10. Shell Programming and Scripting
Hi all,
I have a folder that I am trying to tar ut is leading to unexpected results.
Ive written a script that find a certain number of files(logs) with specific names older than 14 days, moves them to a folder and compresses that folder.
_ARCHIVE=/opt/test/archived_logs... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies
LEARN ABOUT LINUX
git-tar-tree
GIT-TAR-TREE(1) Git Manual GIT-TAR-TREE(1)
NAME
git-tar-tree - Create a tar archive of the files in the named tree object
SYNOPSIS
git tar-tree [--remote=<repo>] <tree-ish> [ <base> ]
DESCRIPTION
THIS COMMAND IS DEPRECATED. Use git archive with --format=tar option instead (and move the <base> argument to --prefix=base/).
Creates a tar archive containing the tree structure for the named tree. When <base> is specified it is added as a leading path to the files
in the generated tar archive.
git tar-tree behaves differently when given a tree ID versus when given a commit ID or tag ID. In the first case the current time is used
as modification time of each file in the archive. In the latter case the commit time as recorded in the referenced commit object is used
instead. Additionally the commit ID is stored in a global extended pax header. It can be extracted using git get-tar-commit-id.
OPTIONS
<tree-ish>
The tree or commit to produce tar archive for. If it is the object name of a commit object.
<base>
Leading path to the files in the resulting tar archive.
--remote=<repo>
Instead of making a tar archive from local repository, retrieve a tar archive from a remote repository.
CONFIGURATION
tar.umask
This variable can be used to restrict the permission bits of tar archive entries. The default is 0002, which turns off the world write
bit. The special value "user" indicates that the archiving user's umask will be used instead. See umask(2) for details.
EXAMPLES
git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)
Create a tar archive that contains the contents of the latest commit on the current branch, and extracts it in /var/tmp/junk directory.
git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release.
git tar-tree v1.4.0^{tree} git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release, but without a global extended pax header.
git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar
Get a tarball v1.4.0 from example.com.
git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar
Put everything in the current head's Documentation/ directory into git-1.4.0-docs.tar, with the prefix git-docs/.
GIT
Part of the git(1) suite
Git 1.8.5.3 01/14/2014 GIT-TAR-TREE(1)