terrywong,
I strongly suggest to use gtar. Check http://www.gnu.org on how to get it for AIX.
Stefan
Main Topics
Browse All TopicsHi All,
Our system is AIX 5.1.
1. I wrote a srcipt to tar FOUR directories:
tar -cvf /dev/rmt0.1 / >> /logs/coldbackup
tar -cvf /dev/rmt0.1 /usr >> /logs/coldbackup
tar -cvf /dev/rmt0.1 /var>> /logs/coldbackup
tar -cvf /dev/rmt0.1 /opt >> /logs/coldbackup
However at the end I found it tar ALL the directories in my system, such as /tmp, /abc, /def, ....etc. So what's the problem? I shouldn't put tar / (root) in the script? if there is alternative method to backup / ?
2. I saw there is some limitation on using tar to backup the file size which is bigger than 2 G, so how to solve?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
terrywong,
I strongly suggest to use gtar. Check http://www.gnu.org on how to get it for AIX.
Stefan
tar -cvf /dev/rmt0.1 / >> /logs/coldbackup
this will backup anything in and below root i.e you're whole filesystem.
Proposed Solution :
In Solaris 8 there is the X switch (tar -cvfX ) it allows you to
use an Exclude file in side of which you can place
excluded files and directories
SYNOPSIS
tar c [ bBeEfFhiklnopPqvwX [ 0-7 ] ] [ block ] [ tar-
file ] [ exclude-file ] { -I include-file | -C directory
| file | file }
Don't know if that exists in AIX
example : Text inside a file named Exclude or any name you give it.
/tmp will exclude eveything in tmp and below for example
/etc next line , something else to exclude
/bogus/sample_file Exclude a particular file within the bogus directory
Hope this helps
RayZilla
Business Accounts
Answer for Membership
by: stefan73Posted on 2004-04-19 at 02:55:33ID: 10857996
Hi terrywong,
big_files
> I shouldn't put tar / (root) in the script? if there is alternative
> method to backup / ?
Depends. Some tars, such as Gnu tar, allow you to specify not to cross a file system's boundary.
In terms of performance, it's probably better to back up all file systems in parallel, but you'd need several tape drives for that.
> I saw there is some limitation on using tar to backup the file size which is bigger than 2 G, so how to solve?
Again, depends :-)
There are tar versions which support 64bit file sizes. You can simply check yours by creating a dummy file, like
dd if=/dev/zero bs=1024k count=2500 > some_place_which_supports_
...and tar it.
(maybe dd also doesn't like 2G files - check your documentation)
Cheers,
Stefan