Now, if someone wants to check how much space is needed to untar and uncompress the file oraclebackup.tgz how can he check ?
You can't: because of he algorithm used there is no direct relation between the source and the target file size: if file X is bigger than file Y then X.gz might still be smaller than Y.gz. The only way to find out is to actually compress the file. The same is true for the other way round.
the reason why I asked this question, when I use
my 155GB filesystems fills up and tar exits,
but when i use the AIX tar to untar , it untars without any problems, and the filesystem after untar is 147GB where as using GNU tar , my filesystem becomes full at 155GB and exits. My filesystem capacity is 155GB ;
when I use
my 155GB filesystems fills up and tar exits,
Two minor corrections: first, tar is one of the few commands where "-" does NOT introduce options. Correct is:
Still, i do not think this is pertinent to your problem.
Second: i am not sure if gunzip < /backup1 really extracts to stdout. I'd use the "-c" flag, which does that (extract to stdout), but then, this might be working too. RIght now i have no gunzip on AIX at hand to verify.
Regarding your problem: i have no idea. Which "tar"-version is installed in /opt/freeware?
We had that already: "tar tvf ....", without the dash.
Quote:
Originally Posted by filosophizer
note: -z will not work on AIX but will work on Linux
This has nothing to do with the OS, only with the tar-version you use: GNU-tar understands "z" (again: not "-z", but "z") andh "j", the AIX-tar (and any other POSIX-conformant "tar") does not. Linux has the GNU-tar installed by default, AIX the AIX-tar.
This is why i would never on "j" or "z" or any other non-standard subcommand and always would use:
Simply, because the extra feature may or may not be there, but this is guaranteed to work. Part of my work philosohpy is to avoid unnecessary risks. This is one - and one which is easily avoided, for that matter.
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)
Need to
1. archive all the files in a directory from the previous month into a tar/gz file, ignoring all already archived 'tar.gz' files
2. Check created .tar.gz file isnt corrupted and has all the required files in it. and then remove the original files.
I am using a function to get the... (1 Reply)
Hi Gurus
I need to know few things related to HBA port & fcinfo command
I have a server where there are 4 HBA ports cards are their. Out of 4 ports 2 are in use & 2 are not in use when I check it physicall. Now I want to know the command through which I can get information about all above... (6 Replies)
Hi all,
I would like to know what would happen if the tape (media) is not placed on the drive and a tar command is executed to backup on the tape.
My problem is that tar command hanged for multiple days instead of throwing the error,
Is it valid behaviour?
I was unable to test the... (4 Replies)
Hi,
I've got dozens of tar's with two files in each one,
live_access_log & live_error_log (one tar for each day, backups).
The probelm is i need to match a pattern in all of the archive_access_log files and output the line to a seperate file (All_access.log).
I.e. I need to get details... (21 Replies)
Hi,
I am creating a disaster recovery plan for my Linux 7.2 machine. I have two backups from my current machine.
One created using the command
tar -cvpf /dev/st0 --exclude=/proc --directory / .
and one created with the command
find / /boot /home -mount -path '/proc' -prune -o -print |... (4 Replies)
# grep "Jul 3" syslog.messages | more
Jul 3 00:16:03 www3 CPU3: NOTICE: HTFS: No space on dev hd (1/42)
Jul 3 00:16:08 www3 CPU3: NOTICE: HTFS: No space on dev hd (1/42)
Jul 3 00:17:01 www3 CPU2: NOTICE: HTFS: No space on dev hd (1/42)
Jul 3 00:17:06 www3 syslogd: /usr/adm/debug: No space... (1 Reply)
I'm trying to set up a stanard sh script that will find all the files that have been changed within the last day and then tar them up.
I think the command line should be something like :
find /home/bob -atime +0 -exec \ tar cvf /home/bob/files.tar {}\;
Help please ...
Thanx (3 Replies)