Re: COPYTREE Question
- From: briggs@xxxxxxxxxxxxxxxxx
- Date: 1 May 2007 07:22:02 -0500
In article <DTiotGxQ0bj6-pn2-mfjkhJUTBUYq@xxxxxxxxxxxxxxxxxxx>, "Dave Weatherall" <djw-nothere@xxxxxxxxxxxx> writes:
On Tue, 1 May 2007 00:38:25 UTC, JF Mezei
<jfmezei.spamnot@xxxxxxxxxxxxx> wrote:
Chuck Aaron wrote:
I want to copy a directory and all it's sub directories and files from one
server to a new server where the directories do not currently exist.
what is the best way to do this with or without copytree?
BACKUP is the tool. But it requires a magic incarnation to get it to
rebuild a new tree that is identical to the original one under the new root.
Use google for comp.os.vms in the last 2 years search for BACKUP and
[...*] and you'll find a coupl;e of posts of the magic incantation that
ended up working.
I do somthing like :-
$ backup drive:[root....] other_server::root_1.bck /sav /log /ver
It assumes you have an account on other_server and root_1.bck will be
placed in SYS$LOGIN there. You can drop the /log but i would keep the
/ver. The /log is there to ensure the command has been taken (entered)
as I intend it...
If you need to specify a username of other server then :-
$ backup drive:[root....] other_server"name password"::root_1.bck
/sav /log /ver
Log on to other_server and then :-
$ backup root_1.bck /sav /sel=[root...] new_drive:[root...] /lo /ver
/by_own=original
This will rebuild the directory tree, maintain file protections, Owner
and any ACL's. If you do have ACL identifiers, it would be a good idea
to ensure they exist on other_server first.
Those commands look right.
Note that BACKUP preserves the numeric values of the rights identifiers
appearing in ACLs. It does not preserve the identifier names.
One needs to ensure not only that the identifiers exist but also that
they have the same numeric value on the target system as the one they had
on the source system.
It does no good to have ORACLE_ADMINISTRATORS on the source machine
with hex code %x80001357 and ORACLE_ADMINISTRATORS on the target
machine with hex code %x80001358.
And it would be especially unfortunate if the target machine had BAD_HACKERS
at %x80001357.
The /INTERCHANGE qualifier to BACKUP will cause it to restore the
new files using default ACLs picked up from the target directory tree.
If the rights database on the source and target machines are not consistent
then this may be of considerable use. Of course you lose the original
ACLs.
If files are owned by UICs or identifiers that do not exist or are
not consistently numbered on the target system then one would obviously
not want to use /BY_OWNER=ORIGINAL.
.
- Follow-Ups:
- Re: COPYTREE Question
- From: Dave Weatherall
- Re: COPYTREE Question
- References:
- Re: COPYTREE Question
- From: JF Mezei
- Re: COPYTREE Question
- From: Dave Weatherall
- Re: COPYTREE Question
- Prev by Date: Re: Making LIB$*_VM_PAGE Caller's-mode safe
- Next by Date: Re: VAXStation 3100 M38
- Previous by thread: Re: COPYTREE Question
- Next by thread: Re: COPYTREE Question
- Index(es):
Relevant Pages
|