- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- copying files from a directory ending in Z
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
тАО02-18-2004 07:41 AM
тАО02-18-2004 07:41 AM
/work/work *.ttl
/SQL/CTL *.ctl
All the files that have the ending .ttl and .ctl are to be copied.
Will the *.ctl files overwrite the .ttl files?
Also, is it possible to compute the total space all of these files will consume?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2004 07:44 AM
тАО02-18-2004 07:44 AM
Re: copying files from a directory ending in Z
You are doing something like:
# cp /work/work*.ttl /dest
# cp /SQL/CTL*.ctl /dest
No worries. The files have different extensions (.ttl and .ctl) so they have different names. Only if the file names were EXACTLY the same would you have any worries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2004 07:49 AM
тАО02-18-2004 07:49 AM
Re: copying files from a directory ending in Z
Btw, *ttl will not overwrite *ctl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2004 07:56 AM
тАО02-18-2004 07:56 AM
SolutionYou must make sure you use the correct 'tar' syntax (or whatever command you use).
If you do:
# cd /
# tar -cvf /dev/rmt/0mn work/work*.ttl SQL/CTL*.ctl
I show the 'cd /' so that you can use relative paths instead of explicit paths in the tar command. This makes for much easier restores down the road.
The space the files will consume on the tape is hard to know. If the tape drive does compression by default then the total size of the files on the disk may be much greater than the size of the files on the tape once they are compressed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2004 08:47 AM
тАО02-18-2004 08:47 AM
Re: copying files from a directory ending in Z
Or, using cpio.
find . -name '*.ttl' -o -name '*.ttl' |cpio -o >/dev/rmt/0m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 01:24 AM
тАО02-19-2004 01:24 AM
Re: copying files from a directory ending in Z
cannot open /dev/rmt/0m and
cannot open /dev/rmt/0mn
This is a tape that has worked before when making make_recovery tapes. ioscan shows I am using the correct path name. Any ideas what is going on?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 01:28 AM
тАО02-19-2004 01:28 AM
Re: copying files from a directory ending in Z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 01:29 AM
тАО02-19-2004 01:29 AM
Re: copying files from a directory ending in Z
cannot open /dev/rmt/0m and
cannot open /dev/rmt/0mn
Chech that 0m is the correct tape device file.
ll /dev/rmt
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 01:37 AM
тАО02-19-2004 01:37 AM
Re: copying files from a directory ending in Z
However, "ioscan -fnC tape" will confirm which devices have a tape drive attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2004 01:55 AM
тАО02-19-2004 01:55 AM
Re: copying files from a directory ending in Z
The ioscan -fnC tape shows
tape 0/0/1/0.3.0 for /dev/rmt/0m
And when doing ll /dev/rmt the output shows
0X003000 0m
So this all looks right. One thing is, this tape was used to make a make_recovery tape and my guess is this should not be a problem. I am not sure what the problem is, checked all of the cables and it looks alright to me.
thanks