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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar command problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

hai !

Is there any problem in my scripts. Normally, I use this script for daily backup and is succesfully until recently I faced this errors. For your info, backup.txt is only consists of 199 line


Any help will be greatly appreciated

Liros



[Liros]> back.src
back.src[3]: /usr/bin/tar: 0403-027 The parameter list is too long.

[Liros] >cat back.src
`#!/usr/bin/ksh`

tar -cvf /dev/rmt0 $(cat /bck/backup.txt)

OuX] >cat backup.txt|pg

/aa/AA/AA1.1
/aa/AA/AA1.2
/aa/AA/AA1.3
/aa/AA/AA1.4

- - -- ---
- -- - - -

199 lines


 
Tar has an optionto read input from a file try that as you file list is too long.

tar -cvf /dev/rmt0 -F /bck/backup.txt Tony ... aka chgwhat
tony_b@technologist.com

When in doubt,,, Power out...
 
Hai Tony !

Thank you for your assistance. However, the insruction that you give is just backup the file "backup.txt" only not the contain of backup.txt.


Actually, I need to backup all the entire file in backup.txt file.

Thanks

Liros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top