- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- create an archive based on a list of files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 07:37 PM
тАО05-09-2006 07:37 PM
I am in the process of migrating a system from True64 to hpux.
Part of the job is to move a huge number of files: between 10000 and 30000, average size smaller than 1kb.
Various people specify which files to move; their input is in the shape of "from underneath these points in the file-hierarchy", bur excluding "from underneath those points in the file-hierarchy".
My idea is to find the relevant files and list their full paths as individual lines in a single file - an then use this file as basis for making an archive.
The above mentioned file has been created, and I then tried to create a pax archive this way:
#Initially, create a pax archive holding a single, empty file
pax -w -f ${DESTINATION_DIR}/${PAX_FILE} ${EMPTY_FILE}
#Then append each file from the list of files in TO_INCLUDE:
while read tag_med_linie
do
pax -w -a -t -f ${DESTINATION_DIR}/${PAX_FILE} "$tag_med_linie"
done <${TO_INCLUDE}
which works. However, seems slow - perhaps because of the huge number of files, perhaps because appending is slow, or perhaps my expectations are set too high.
Can anyone suggest a way creating an archive faster, keeping it based on input from the beforementioned file.
Other archive types are welcome as long as they can be created on standard True64 and read in on hpux.
Best regards,
John K.
Solved! Go to Solution.
- Tags:
- pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2006 01:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2006 02:00 AM
тАО05-10-2006 02:00 AM
Re: create an archive based on a list of files
Best regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2006 02:40 AM
тАО05-10-2006 02:40 AM
Re: create an archive based on a list of files
cat ${TO_INCLUDE} | pax -w -t -f ${DESTINATION_DIR}/${PAX_FILE}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2006 02:59 AM
тАО05-10-2006 02:59 AM
Re: create an archive based on a list of files
you are right. I did not know that pax also reads from stdin.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2006 07:13 PM
тАО05-10-2006 07:13 PM
Re: create an archive based on a list of files
it works even faster!
Best regards,
John K.