Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar 0403-027 The parameter list is too long

Status
Not open for further replies.

saucyboy

Technical User
Feb 23, 2006
78
0
0
US
Hi guys

I am trying to tar up a directory
my syntax is :
/DBA/oak_21112007>tar -cvpf appltar.tar /DBA/oak_21112007/html/html/*

executing the command i get the folowing error :
ksh: /usr/bin/tar: 0403-027 The parameter list is too long.

is there another way to tar up these files without using cpio

thanx
 
You have to solutions:

first tar all the files using a loop like:

for i in `ls /DBA/oak_21112007/html/html/*`
do
tar -uvpf appltar.tar
done

Else you can temporary change system environment config

smit -> System Environments -> Change / Show Characteristics of Operating System

And then increase the value of ARG/ENV list size in 4K byte blocks

Be careful with this action it must be temporarily because il will change number of memory pages allocation for each new process
 
Just specify the directory instead of directory/*

[tt]/DBA/oak_21112007>tar -cvpf appltar.tar /DBA/oak_21112007/html/html[/tt]

also, it is better to use a relative pathname in backups, easier to restore someplace else...

[tt]cd /DBA/oak_21112007/html/html
tar -cvpf /DBA/oak_21112007/appltar.tar .[/tt]



HTH,

p5wizard
 
p5wizard thats great it worked a treat many thanx :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top