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

tar folders only

Status
Not open for further replies.

ui05067

MIS
Aug 24, 2001
18
US
I would like to TAR AND move (FTP) a directory structure from one box to another HPUX to AIX :)

how can I just tar the directory sturctures without including the files in them?

THanks!
 
Once again, pax should help, with the -d option:

Code:
pax -w [i]/tmp/filename.tar[i] -d $(find [i]srcdir[i] -type d)

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top