Re: recursive copy in VMS



In article <1164863990.368405.196930@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, "thick_guy_9" <thick_guy_9@xxxxxxxxx> writes:
I am looking for a way to do a recursive copy in VMS.
something like cp -r.
I tried the foll soln:
$ backup sys$login:[000000...]*.*;* disk$abc:[test]test.bck/save
$ set def disk$abc:[test]
$ backup test.bck/save
but it doesn't create the directory tree, just all files in one
directory.

Others have answered the recursive question, one observation though:

Using [000000...], especially in a disk-to-disk copy, is very dangerous:
Use [*...] instead, and if there are specific files (LD or ISO disk images
and similar files often placed there), then include them explicitely.
If on copy or restore You blindly use /NEW or /REPLACE, then the output disk
will be corrupted (at least not easy to repair).
To copy [000000] , use BACKUP/IMAGE .

--
Joseph Huber , Muenchen,Germany: http://www.huber-joseph.de/
.



Relevant Pages

  • Re: recursive copy in VMS
    ... $ set def disk$abc: ... but it doesn't create the directory tree, ... Can I make BACKUP work? ... where DISK_HOME is a real device (or a logical name for a device, ...
    (comp.os.vms)
  • Re: Backup & NFS
    ... Michael Austin wrote: ... >> all files on a NFS drive, but I could not $BACKUP a directory tree from ... >> that NFS drive to another disk, I saw the same error message. ... you could always VMSTAR it instead of backup. ...
    (comp.os.vms)
  • Re: Set File /NoBackup
    ... For an /IMAGE backup you cannot exclude a directory tree that way. ... but the new disk will have the correctly ... This is, of course, a hell of a lot faster than saving and restoring ...
    (comp.os.vms)
  • RE: Easiest way..
    ... If you have a fixed set of ACL's for the entire directory tree ... $ BACKUP /INTERCHANGE and $ COPY are your friends. ... The files will inherit default ACLs ...
    (comp.os.vms)
  • Re: camera software
    ... than one backup of the critical items. ... and a drive failure (crashed head) was eating ... the pictures might be stored in the apps directory tree. ...
    (microsoft.public.windowsxp.photos)