05-07-2013
Command in Solaris 10 to exlude more than one directory while creatinga tarfile
Hi,
I am using solaris 10.Could anyone please help me on command to create a tar file by excluding more than one directory.I have tried below command but it did not work.
tar -pcvf orderm_setup.tar . --exclude=/orderm/common/7.0/logs001
Advance thanks for your reply.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Is there any utility to compress an entire directory on a Sun Solaris 5.7 ? Something like "compressdir" on other flavours of Unix ?
Thanks (4 Replies)
Discussion started by: sameerdes
4 Replies
2. Solaris
I need to link a directory from a hp to a solaris machine
like mapping in windows
any suggestion will be apreciated
thanks
Raulb (3 Replies)
Discussion started by: raulb
3 Replies
3. Solaris
how to restrict the size of any directory in solaris. is there any command to give specific file size value for a directory?
is there any idea?
regards (3 Replies)
Discussion started by: nibiru78
3 Replies
4. Solaris
what is the command to see the java version in solaris 8 and solaris 10 (1 Reply)
Discussion started by: tv.praveenkumar
1 Replies
5. Solaris
Hi,
I am using Solaris 10.
i was trying to make a new directory in /u04 but it don't let me make directory unless i remove some other directories.
i issued the following command
df -F ufs -o i
Filesystem iused ifree %iused Mounted on
/dev/dsk/c1t0d0s0 ... (2 Replies)
Discussion started by: malikshahid85
2 Replies
6. Programming
Hi All
I am new to Unix/sloaris.
I want to copy a directory (which conatins further sub directories and files)from sloaris to my windows.I am using PuTTy for it.
please any one guide me how to do this or share with me some piece of script. It will be very regarded
Best Wishes
MIS. (1 Reply)
Discussion started by: MIS
1 Replies
7. Solaris
Hi All
I am new to Unix/sloaris.
I want to copy a directory (which conatins further sub directories and files)from sloaris to my windows.I am using PuTTy for it.
please any one guide me how to do this or share with me some piece of script. It will be very regarded
Best Wishes
MIS. (3 Replies)
Discussion started by: MIS
3 Replies
8. Solaris
Dear Gurus of solaris
I have a problem when I try to create a directory
when I enter in the /home/ directory and try to create a new directory appear the following error
Why If I am root, Can any guru can help me (3 Replies)
Discussion started by: andresguillen
3 Replies
9. Shell Programming and Scripting
I am trying to do the following task :
export ENV=aaa
export ENV_PATH=$(cd /apps | ls | grep $ENV)
However, it's not working. What's the way to change to directory and search some file in that directory in single command
Please help. (2 Replies)
Discussion started by: saurau
2 Replies
10. Shell Programming and Scripting
Hello all,
I would like to add a file to a compressed (gzip) tarfile. Normally it won't be a Problem, if I would do it in several steps. But I do not want to have unnecessary files.
So, in words:
unzip the tarfile
add a new file
zip the tarfile
What I tried:
... (3 Replies)
Discussion started by: API
3 Replies
LEARN ABOUT DEBIAN
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.7.10.4 11/24/2012 GIT-TAR-TREE(1)