- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Copy directory hierachy on OpenVMS
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
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
тАО03-12-2009 07:53 AM
тАО03-12-2009 07:53 AM
I want to copy the whole directory including the subdirectories into another directory.
E.g. the directory1 from disk1: into disk2:.
$copy disk1:[directory1]*.*;* disk2:
it does not create [directory1] under disk2:, but rather copies only files from [directory1] and not its subdirectories.
Please help me with the right command.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 08:00 AM
тАО03-12-2009 08:00 AM
Re: Copy directory hierachy on OpenVMS
In OpenVMS use "..." to specify "-R"
$copy disk1:[directory1...]*.*;* disk2:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 08:06 AM
тАО03-12-2009 08:06 AM
Solutionein wrote:
H
>>>
In OpenVMS use "..." to specify "-R"
$copy disk1:[directory1...]*.*;* disk2:
<<<
which is how you get ALL files into one directory.
If you also want to create the subdirectory structure, then also use BACKUP
$ BACKUP disk1:[dir1...] disk2:[dir2...]
If dir2 is to be the same name as dir1, it may be replaced with disk2:[*...]
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 08:07 AM
тАО03-12-2009 08:07 AM
Re: Copy directory hierachy on OpenVMS
$ backup disk1:[dir1...] disk2:[*...]/ow=orig
Eberhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 08:20 AM
тАО03-12-2009 08:20 AM
Re: Copy directory hierachy on OpenVMS
BACKUP is generally the most appropriate tool to do this task within a single system.
I would recommend a careful reading of the HELP text related to the correct use of the /BY_OWNER. Generally, the safest option is /BY_OWNER=PARENT, but other values are appropriate in some situations.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 08:41 AM
тАО03-12-2009 08:41 AM
Re: Copy directory hierachy on OpenVMS
>>>
Generally, the safest option is /BY_OWNER=PARENT, but
<<<
Personally, I feel A LOT more comfortable with /BY_OWNER=ORIGINAL.
Parent directories have a nasty habit of being owned by SYSTEM or [1,1]; and if the protections are decent then noone can access the result.
Another effect goes with it: /BY_OWNER=ORIGINAL also preserves the original protection (including ACLs) where /BY_OWNER=PARENT propagates the parent security. Usually preserving the original settings is the desired behavior, but of course that is depending on the need.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2009 05:26 AM
тАО03-15-2009 05:26 AM
Re: Copy directory hierachy on OpenVMS
Hans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2009 06:48 AM
тАО03-15-2009 06:48 AM
Re: Copy directory hierachy on OpenVMS
Directories created for users are normally created as owned by the user's UIC. Copying a tree from one user to another would be /BY_OWNER=PARENT (since the root level directories would be correctly owned).
If one is using BACKUP create a root level directory for a user, as well as the contents of the tree, one wants neither ORIGINAL nor PARENT; one wants the UIC of the new user who is to own the directory tree.
Note the implications for utilities such as MAIL, which presume ownership (or at least read/write access) to files.
- Bob Gezelter, http://www.rlgsc.com