actually I just want to add. For safety reasons whenever you tar anything always try to have the practice to specify relative instead of absolute path.
example:
absolute path will be tar cf /tmp/abc.tar /etc
relative path will be tar cf /tmp/xyz.tar ./etc <-- "."
The danger of using absolute path is when you un-tar the file it will overwrite existing folder.
example:
cd /tmp
tar xf abc.tar will extract and overwrite existing /etc
tar xf xyz.tar will extract into /tmp only
Quick question,
is it possible to make a Tar of completely directory and placing the tar file in it (will this cause even the tar file to tarred ?)
sample:
/opt/freeware/bin/tar -cvf - /oracle | gzip > /oracle/backup.tgz
will the tar file backup.tgz also include backup.tgz ?
i tried... (5 Replies)
I want to backup all the directory tress, including hidden directories, without copying any files.
find . -type d gives the perfect list.
When I tried tar, it won't work for me because it tars all the files.
find . -type d | xargs tar -cvf a.tar
So i tried rsync.
On my own test box, the... (4 Replies)
HI,
if I have a tarfile called pmapdata.tar that contains
tar -tvf pmapdata.tar
-rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt
-rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt
-rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
I am new to Sun.
I brought Sun Fire 280R to practice UNIX. What are the requirements for the monitor/CRT? Will it burn out old non-Sun CRTs? Does it need LCD monitor?
Thanks. (3 Replies)
Hey there,
I am starting a Computer Science Foundation year at the end of this month and am trying to get a little bit ahead of the game. I have always wanted to learn Unix and am currently struggling with creating a boot disc to run Solaris (I have chosen to study this) from as opposed to... (0 Replies)
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)
AMSUNTAR(8) System Administration Commands AMSUNTAR(8)NAME
amsuntar - Amanda Application to interface with native tar utility available on solaris platforms
DESCRIPTION
Amsuntar is an Amanda Application API script. It should not be run by users directly. It uses Solaris bundled tar utility to backup and
restore data. Currenty ACLs from ZFS file system can only be backed up using the solaris supplied tar utility.
The diskdevice in the disklist (DLE) must be the directory to backup.
Solaris 10 supports Role Based Access Control(RBAC) which is enabled by default. To run backup operations using sun tar utility by under
privileged user like amandabackup, amandabackup user need to have proper roles and profiles, specially "Media Backup" profile/role. This
can be done using 'usermod -P "Media Backup" amandabackup' command.
PROPERTIES
This section lists the properties that control amsuntar's functionality. See amanda-applications(7) for information on application
properties and how they are configured.
BLOCK-SIZE
Optional tar read or write block size. The default is 256.
DIRECTORY
If set, suntar will backup from that directory instead of the diskdevice set by the DLE. On restore, the data is restore in that
directory instead of the current working directory.
EXTENDED-ATTRIBUTES
Include extended attributes in archive. The default is YES.
EXTENDED-HEADERS
Write tar file with extended headers. With this optiion the modification time is maintained with a granularity of microseconds,Long
file names and file sizes greater than 8GB can be archived. The default is YES.
SUNTAR-PATH
The path to the suntar binary. The default is set when Amanda is built.
LANG
Default LANG is "C". suntar require an UTF-8 LANG if you have UTF-8 filename and it is configured for extended headers. A good value
can be "en_US.UTF-8" if that locale is installed on your machine.
NORMAL
List all regex (Perl Regular Expression syntax) that are normal output from sun tar. These output are in the "FAILED DUMP DETAILS"
section of the email report if the dump result is STRANGE or FAILED. Default values:
is not a file. Not dumped$
same as archive file$
To treat one of these default patterns differently, specify it explicitly in a different property.
IGNORE
List all regex (Perl Regular Expression syntax) that amanda ignore. These output are never in the email report.
STRANGE
List all regex (Perl Regular Expression syntax) that are strange output from sun tar. The result of the dump is STRANGE if sun tar
produce a strange output. These output are in the "FAILED DUMP DETAILS" section of the email report. Default values:
: invalid character in UTF-8 conversion of
: UTF-8 conversion failed.$
To treat one of these default patterns differently, specify it explicitly in a different property.
ERROR
List all regex (perl Regular Expression syntax) that are error output from sun tar. All sun tar output that doesn't match a normal,
ignore or strange regex are error by default. The result of the dump is FAILED if sun tar produce an error output. These output are in
the "FAILED DUMP DETAILS" section of the email report. Default values:
: Permission denied$
To treat one of these default patterns differently, specify it explicitly in a different property.
SEE ALSO amanda(8), amanda.conf(5), amanda-applications(7)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Satya Ganga <gast@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.1 02/21/2012 AMSUNTAR(8)