10-27-2005
How to exclude file in tar backup?
I am taking a backup of area with the following command:-
tar -cf -./* |/usr/contrin/bin/gzip >xxx.tar.gz.
The area contains following files :-
xxxx
yyyy
zzzzz
asdaD
DASdD
WQWEE
I want to backup all the files except yyyy from the following area.
I checked manual page of tar but I didn't came across anything that was helpful.
10 More Discussions You Might Find Interesting
1. 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
2. Filesystems, Disks and Memory
I have a Linux email server, I want to backup all /home /var... by tar command and copy to my PC for backup everyweek. The Linux serve rhave ftp function.
Is there any program to help backup my file? any url welcome
many thank. (8 Replies)
Discussion started by: zp523444
8 Replies
3. AIX
Hi
I have a file named files.2.backup which holds the location of some directory and file i,e
$ cat files.2.backup
/d01/app/oracle/product/7.3.2/dbs/fortest_syst_01.dbf
/d01/app/oracle/product/7.3.2/dbs/fortest_temp_01.dbf
/d01/app/oracle/product/7.3.2/dbs/fortestdata_01.dbf... (5 Replies)
Discussion started by: sumanbangladesh
5 Replies
4. 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
5. Shell Programming and Scripting
Hi,
Another rookie here.
I have a script I am developing to backup files from various directories onto a windows machine.
Script description:
- mv files from various directories
- tar all files in that directory
- export to windows server for safe keeping, external backups.
The... (5 Replies)
Discussion started by: mcclunyboy
5 Replies
6. Solaris
Hi,
How do I extract data from TAR excluding absolute paths for Tar? (Solaris)
Thanks (3 Replies)
Discussion started by: zam
3 Replies
7. AIX
Hello AIX experts,
I have a file system called /bossapp
Its size = 77.5 GB
I want to take a File Systems backup for this one using smitty, it is very easy, but the problem is I want to exclude one directory called (ORIGIN).
How?
The steps are very easy to take a File Systems backup,... (2 Replies)
Discussion started by: Mohannad
2 Replies
8. 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
9. UNIX for Dummies Questions & Answers
I want to create a tar file that backup all my recent work. I have no idea how Tar file works and I am new to Unix Please help (1 Reply)
Discussion started by: GGBEASTBOI
1 Replies
10. 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
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)