10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
uname -a
SunOS mymac 5.11 11.2 sun4u sparc SUNW,SPARC-Enterprise
I need to tar a folder /tmp/moht but do not want these three folders to be included in the tar file -> savejpg, bmpsave and imgsave
I tried --exclude, -path, -not options but it says bad option
Can you help me with... (3 Replies)
Discussion started by: mohtashims
3 Replies
2. Solaris
I have solaris 10 and my following exclude is not working:
tar -cvf /export/home/backups/$audit-Data-$useday.bkup.tar /Data --exclude=/Data/ssg/output
a /Data/ssg/output/ 0K
a /Data/ssg/output/ssg-ported508.txt 107142K
a /Data/ssg/output/ssg-ported747.txt 1801K
a... (4 Replies)
Discussion started by: mrn6430
4 Replies
3. UNIX for Dummies Questions & Answers
hi,
i am trying to use a exclude file to exclude some file directories while making a tar archive. This is my command:
tar -pcvf orahome10gR2.tar.gz db_1 -X /home/oracle/excludeFile.txt /home/oracle/
when i execute it, it seem to be tar-ing. But once is done, i cd to /home/oracle and could... (2 Replies)
Discussion started by: redologger
2 Replies
4. AIX
Hi, im having some issues after i execute the next command:
tar -cvf /varios/restore/test.tar -X /jfma/test1/excludefile /jfma | gzip -c > /varios/restore/test.tar.gz
this creates the desired "test.tar.gz" file, but whe i try to open it it says "tar: 0511-164 There is a media read or write... (6 Replies)
Discussion started by: blacksteel1988
6 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified.
Do I need to single quote the directory paths ??
Many thanks for your help.
The relevant code excerpt from the script is:
cd /var/www/${SITE}
... (7 Replies)
Discussion started by: daveu7
7 Replies
6. SCO
Hi,
We work on a UNIX SCO SCO_SV Release = 3.2v5.0.5.
I have a folowing structure
/u/usr/lpp
/u/usr/lpp/SQL
/u/usr/lpp/DIR2
I use following tar to backup the /u/usr/lpp directory
cd /u/usr/lpp
tar cvf /u/usr/backup/backup.tar .
Now I want to exclude the subdirectory SQL.
I... (2 Replies)
Discussion started by: haezeban
2 Replies
7. Solaris
I have solaris 8, I want to create tar for all files under this directory structure
#/export/home/atg/Dynamo/home
There is a subdirectory under this tree called servers/supersds/logs
I want to exclude logs subdirectory so I created exclude list which contains
servers/supersds/logs
But tar... (2 Replies)
Discussion started by: Tirmazi
2 Replies
8. UNIX for Dummies Questions & Answers
OS: SunOS perfs01 5.8 Generic_117350-23 sun4u sparc SUNW,UltraAX-i2
I want to tar a directory, but there are subdirectoires I want to exclude. Does anyone know how to do it?
Please help.
thanks. (1 Reply)
Discussion started by: leemjesse
1 Replies
9. UNIX for Dummies Questions & Answers
I want 'tar' to exclude certain dir's.
tar cvf ............. ............ does the whole lot, but I want to exclude the 'log' dirs. (6 Replies)
Discussion started by: kuultak
6 Replies
10. Filesystems, Disks and Memory
If i have a bunch of directories that i normally backup with this:
tar cvhf /dev/rmt/0 /export/home
How can i exclude certain subdirectories under the /export/home?
tar cvhf /dev/rmt/0 /export/home | grep -v 'test' ? will that exclude anything named test, and any subdirectories under test? (7 Replies)
Discussion started by: kymberm
7 Replies