02-03-2009
try sth like:
# tar -cvf - $(yourfilelist) | gzip > file.tar.gz
... unix commands are small compared to windoze... but you can combine them into powerful tools
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm backing up one of my sites, and will be moving to another host. This was an expermintal site, and many of the directories won't be needed.
What tar command is needed to exclude directories from the compressed file? Could you also give an example.
also this might be the same comand, but -... (4 Replies)
Discussion started by: Taylor
4 Replies
2. AIX
I am making some shell commands using tar command under AIX. Could somebody tell me the meaning of those return code of tar command? like 1, 2, 3...
I have been searching all the time and got only this:
0 success
>0 error
Does somebody know the meaning of those number greater than 0 in... (3 Replies)
Discussion started by: dupeng
3 Replies
3. AIX
Hi,
I have a question.
Im trying to tar a files that the size is bigger that 2 gig.
When i tried to tar it, i got an error says "eached end-of-file before expected"
How can i solve this?
Thanks and Regards (6 Replies)
Discussion started by: owangecounty
6 Replies
4. AIX
Is there a GNU Tar available with compression option available for AIX 4.2 that I can directly use (not having to compile anything, simple installation) ? (1 Reply)
Discussion started by: Browser_ice
1 Replies
5. AIX
Hi
root@appdr01 #ls -latr
total 2887400
drwxr-xr-x 2 root system 256 May 06 11:34 lost+found
drwxr-xr-x 34 root system 4096 May 06 11:34 ..
drwxr-xr-x 3 root system 256 May 06 12:20 .
-rw-r----- 1 root system 1478338560 May 06... (1 Reply)
Discussion started by: samsungsamsung
1 Replies
6. AIX
Hello,
I have openssl.0.9.8.1103.tar.tgz file which I have downloaded from https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=aixbp&S_PKG=openssl siteThe website says that the file name is openssl.0.9.8.1103.tar.z but when downloaded I get openssl.0.9.8.1103.tar.tgz as the... (2 Replies)
Discussion started by: gaugeta
2 Replies
7. UNIX for Dummies Questions & Answers
Hi
i want to tar a directory.. i have tried few command but it is not working .
please let me know how to tar and untar a directory
below are the error which i am getting
tar -zxvf tl11cp01_042414_071123.tar.gz
tar: Not a recognized flag: z
tar -zxvf... (3 Replies)
Discussion started by: scriptor
3 Replies
8. AIX
Hello,
I have a directory which suddenly got filled up 100% from 70% ; (this is an oracle directory which has application and database in it ORACLE EBS)
I do make cold backups, last month when I made cold backup of the directory /oratec the tar zip file was 31GB and this month when i made the... (5 Replies)
Discussion started by: filosophizer
5 Replies
9. AIX
Hello,
Getting this very strange error, made tar/zip through gnu tar
GNU Tar ( successful tar and zip without any errors )
/opt/freeware/bin/tar cvf - /oraapp| gzip > /backup/bkp_15_6_16_oraapp.tgz
GNU unTar error
root@test8:/>gunzip < /config1/bkp_15_6_16_oraapp.tgz |... (5 Replies)
Discussion started by: filosophizer
5 Replies
10. UNIX for Advanced & Expert Users
How good is the compression rate of gzip when you use tar with the gzip option? I am pretty amazed that a 1 GB file was reduced to 1019K. This is what I did.
tar -cvf tar_test.tar.gz -T /list_of_files
ls -hl
-rw-r-----. 1 owner group 19 Jul 23 16:00 list_of_files
-rw-r-----. 1 owner group... (7 Replies)
Discussion started by: cokedude
7 Replies
LEARN ABOUT SUSE
virt-tar-out
virt-tar-out(1) Virtualization Support virt-tar-out(1)
NAME
virt-tar-out - Pack a virtual machine disk image directory into a tarball.
SYNOPSIS
virt-tar-out -a disk.img /dir files.tar
virt-tar-out -d domain /dir files.tar
virt-tar-out -d domain /dir - | gzip --best > files.tar.gz
DESCRIPTION
"virt-tar-out" packs a virtual machine disk image directory into a tarball.
The first parameter is the absolute path of the virtual machine directory. The second parameter is the tar file to write. Use "-" to
write to standard output.
EXAMPLES
Download the home directories from a guest:
virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz
JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH
This command is just a simple shell script wrapper around the guestfish(1) "tar-out" command. For anything more complex than a trivial
copy, you are probably better off using guestfish directly.
OPTIONS
Since the shell script just passes options straight to guestfish, read guestfish(1) to see the full list of options.
SEE ALSO
guestfish(1), virt-cat(1), virt-copy-in(1), virt-copy-out(1), virt-edit(1), virt-tar-in(1), <http://libguestfs.org/>.
AUTHORS
Richard W.M. Jones ("rjones at redhat dot com")
COPYRIGHT
Copyright (C) 2011 Red Hat Inc. <http://libguestfs.org/>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
libguestfs-1.18.1 2013-12-07 virt-tar-out(1)