<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BACKUP Utility - directory tree, relative path in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824306#M77640</link>
    <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Let me start with:&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS Forum!&lt;BR /&gt;&lt;BR /&gt;The Heinz solution is the one I prefer.... _IF_ tis is a dedicated saveset ANDI also control the RECORDING of the saveset. But, regrettably, that is not always the case,&lt;BR /&gt;Often (especially in the case where you need to restore just one tree from a regular (ie, total) backup) you do not know in advance WHICH tree you will need to restore.&lt;BR /&gt;&lt;BR /&gt;For those cases, BACKUP has the /SELECT qualifier.&lt;BR /&gt;This should be combined with a mactching output file specification.&lt;BR /&gt;&lt;BR /&gt;In your case:&lt;BR /&gt;&lt;BR /&gt;BACKUP &lt;SAVESET&gt; /SELECT=[PATH...] [OTHER.PATH...]&lt;BR /&gt;&lt;BR /&gt;In your /SELECT you specify exactly all of the specification you want to be NO part of your output, in your output you specify that part of the destination that is NOT in the saveset.&lt;BR /&gt;In Unix speak: you specify the input and output mount points, and down from there the relative paths are identical.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;/SAVESET&gt;</description>
    <pubDate>Sun, 16 Jul 2006 05:45:21 GMT</pubDate>
    <dc:creator>Jan van den Ende</dc:creator>
    <dc:date>2006-07-16T05:45:21Z</dc:date>
    <item>
      <title>BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824303#M77637</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I have a question about OpenVMS BACKUP command. I want back-up specified directory and subdirectories (for example: DISK:[PATH.TO.DIR]*.*). But if I want restore the BCK file to dir OTHER_DISK:[OTHER.PATH.TO.DIR], i don't want create subdirectories OTHER_DIS:[OTHER.PATH.TO.DIR.PATH.TO.DIR]. In dir  OTHER_DISK:[OTHER.PATH.TO.DIR] i want only files from directory DISK:[PATH.TO.DIR]*.* and no subdir [PATH.TO.DIR]. &lt;BR /&gt;&lt;BR /&gt;It is a special parameter of BACKUP command or something ?&lt;BR /&gt;&lt;BR /&gt;Thank you very much for answer !</description>
      <pubDate>Sun, 16 Jul 2006 04:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824303#M77637</guid>
      <dc:creator>Peter Hargas</dc:creator>
      <dc:date>2006-07-16T04:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824304#M77638</link>
      <description>Hi Peter&lt;BR /&gt;&lt;BR /&gt;If I have to do something like this, I do it as follows:&lt;BR /&gt;&lt;BR /&gt;I woud create concealed devices&lt;BR /&gt;&lt;BR /&gt;def/sys/exec/trans=(term,conceal) src DISK:[PATH.TO.DIR.]&lt;BR /&gt;&lt;BR /&gt;def/sys/exec/trans=(term,conceal) dst OTHER_DISK:[OTHER.PATH.TO.DIR.]&lt;BR /&gt;&lt;BR /&gt;You can then do the Backup with the following command:&lt;BR /&gt;&lt;BR /&gt;BACKUP/LOG src:[000000...]*.* dst:[*...]*.*&lt;BR /&gt;&lt;BR /&gt;This should give the result as initialy expected.&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Sun, 16 Jul 2006 04:52:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824304#M77638</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2006-07-16T04:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824305#M77639</link>
      <description>This can be done with usage of the ... construct. But I must admit, that sometimes the resultis not what I expected, si a /LOG is usefull.&lt;BR /&gt;For your example see here:&lt;BR /&gt;DS10_Kalle. sd dqa0:0&lt;BR /&gt; DQA0:[000000]&lt;BR /&gt;DS10_Kalle. create/dir &lt;PATH.TO.DIR&gt;&lt;BR /&gt;DS10_Kalle. cop tt:  &lt;PATH.TO.DIR&gt;a.a&lt;BR /&gt;DS10::iTKalle@TNA3 12:07:42 COPY      CPU=00:00:00.96 PF=3455 IO=2232 MEM=177&lt;BR /&gt; Copying: TT:[].; (0% completed)&lt;BR /&gt;          0 blocks copied of 0&lt;BR /&gt; Exit &lt;BR /&gt;%COPY-S-COPIED, TT: copied to DQA0:&lt;PATH.TO.DIR&gt;A.A;1 (0 records)&lt;BR /&gt;DS10_Kalle. cop tt:  &lt;PATH.TO.DIR&gt;b.b&lt;BR /&gt; Exit &lt;BR /&gt;%COPY-S-COPIED, TT: copied to DQA0:&lt;PATH.TO.DIR&gt;B.B;1 (0 records)&lt;BR /&gt;DS10_Kalle. back/log &lt;PATH...&gt;*.* sc:a.bck/save&lt;BR /&gt;%BACKUP-S-COPIED, copied DQA0:[PATH]TO.DIR;1&lt;BR /&gt;%BACKUP-S-COPIED, copied DQA0:[PATH.TO]DIR.DIR;1&lt;BR /&gt;%BACKUP-S-COPIED, copied DQA0:[PATH.TO.DIR]A.A;1&lt;BR /&gt;%BACKUP-S-COPIED, copied DQA0:[PATH.TO.DIR]B.B;1&lt;BR /&gt;DS10_Kalle. create/dir &lt;OTHERDIR&gt;&lt;BR /&gt;DS10_Kalle. back/log sc:a.bck/save &lt;OTHERDIR...&gt;*.*&lt;BR /&gt;%BACKUP-S-CREDIR, created directory DQA0:[OTHERDIR.PATH.TO]&lt;BR /&gt;%BACKUP-S-CREDIR, created directory DQA0:[OTHERDIR.PATH.TO.DIR]&lt;BR /&gt;%BACKUP-S-CREATED, created DQA0:[OTHERDIR.PATH.TO.DIR]A.A;1&lt;BR /&gt;%BACKUP-S-CREATED, created DQA0:[OTHERDIR.PATH.TO.DIR]B.B;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards Kalle&lt;/OTHERDIR...&gt;&lt;/OTHERDIR&gt;&lt;/PATH...&gt;&lt;/PATH.TO.DIR&gt;&lt;/PATH.TO.DIR&gt;&lt;/PATH.TO.DIR&gt;&lt;/PATH.TO.DIR&gt;&lt;/PATH.TO.DIR&gt;</description>
      <pubDate>Sun, 16 Jul 2006 05:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824305#M77639</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-07-16T05:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824306#M77640</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Let me start with:&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS Forum!&lt;BR /&gt;&lt;BR /&gt;The Heinz solution is the one I prefer.... _IF_ tis is a dedicated saveset ANDI also control the RECORDING of the saveset. But, regrettably, that is not always the case,&lt;BR /&gt;Often (especially in the case where you need to restore just one tree from a regular (ie, total) backup) you do not know in advance WHICH tree you will need to restore.&lt;BR /&gt;&lt;BR /&gt;For those cases, BACKUP has the /SELECT qualifier.&lt;BR /&gt;This should be combined with a mactching output file specification.&lt;BR /&gt;&lt;BR /&gt;In your case:&lt;BR /&gt;&lt;BR /&gt;BACKUP &lt;SAVESET&gt; /SELECT=[PATH...] [OTHER.PATH...]&lt;BR /&gt;&lt;BR /&gt;In your /SELECT you specify exactly all of the specification you want to be NO part of your output, in your output you specify that part of the destination that is NOT in the saveset.&lt;BR /&gt;In Unix speak: you specify the input and output mount points, and down from there the relative paths are identical.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;/SAVESET&gt;</description>
      <pubDate>Sun, 16 Jul 2006 05:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824306#M77640</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-07-16T05:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824307#M77641</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;If I understand your question correctly, I concur with Jan. The /SELECT qualifier is the way to extract the contents of a particular directory in a tree from a saveset containing many directories. &lt;BR /&gt;&lt;BR /&gt;In a slightly different scenario, this is precisely the way that one would restore a single user's files from a backup of the entire user disk.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Sun, 16 Jul 2006 07:19:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824307#M77641</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-16T07:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824308#M77642</link>
      <description>and to be complete:&lt;BR /&gt;&lt;BR /&gt;_IF_ the intention is a restore to the original situation. specify /OWNER=ORIGINAL to maintain the security settings from the original.&lt;BR /&gt;If you are restoring something (say, a delivered software package) into an environment of your site's security, specify /OWN=PARENT.&lt;BR /&gt;If /OWNER is not specified, the execuring process becomes the owner, and the default setting for that process at the time of execution becomes the protection.&lt;BR /&gt;&lt;BR /&gt;-- just another EUR 0.02&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Sun, 16 Jul 2006 08:44:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824308#M77642</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-07-16T08:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824309#M77643</link>
      <description>Thank you guys for quick answer, but i don't think if my question was clear.&lt;BR /&gt;&lt;BR /&gt;I want to create one .bck file. Inside this file are only directories and files in path DISK:[SOME.PATH]*.*;* but no directory SOME and PATH. Then i want to extract this archive to other machine.&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 17 Jul 2006 02:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824309#M77643</guid>
      <dc:creator>Peter Hargas</dc:creator>
      <dc:date>2006-07-17T02:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824310#M77644</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;save with:&lt;BR /&gt;&lt;BR /&gt;$ BACKUP disk:[some.path]*.*;* X.BCK/SAVE&lt;BR /&gt;&lt;BR /&gt;restore with:&lt;BR /&gt;&lt;BR /&gt;$ BACKUP X.BCK/SAVE/SEL=*.*;* disk:[what.you.want]*.*/BY_OWN=ORIGINAL&lt;BR /&gt;&lt;BR /&gt;Note that this does NOT save any subdiretories below [some.path] !&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 17 Jul 2006 02:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824310#M77644</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-07-17T02:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824311#M77645</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;If you only want the files in DISK:[PATH.TO.DIR] (only data files in that directory, no subdirectory files and no files below that directory in the tree) the correct command would be:&lt;BR /&gt;&lt;BR /&gt;$ BACKUP DISK:[PATH.TO.DIR]*.*/EXCLUDE=*.DIR savesetname/SAVE&lt;BR /&gt;&lt;BR /&gt;Depending upon your environment, you may want other options relating to ACLs and UICs, such as /INTERCHANGE.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Mon, 17 Jul 2006 11:06:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824311#M77645</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-17T11:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824312#M77646</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Now that your question has become clearer, you should read again the first answer (by Heinz).&lt;BR /&gt;&lt;BR /&gt;First, you define your desired "anchor point" as a concealde device $ DEFINE/TRANS=CONCEAL src DISK:[PATH.TO.DIR.]&lt;BR /&gt;Note the full stop just before the closing ], it is essential in this syntax.&lt;BR /&gt;Then, BACKUP the "device" src:[*...]&lt;BR /&gt;(the 3 ... specify all sub-dirs and their contents.&lt;BR /&gt;Note: if you want ONLY the highest version of the files, then specify src:[*...]*.*;0&lt;BR /&gt;&lt;BR /&gt;If you are transfering on anything but VMS then multiple versions will be a nuisance (but then again, restoring a saveset itself will also).&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Mon, 17 Jul 2006 12:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824312#M77646</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-07-17T12:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824313#M77647</link>
      <description>I'm surprised I haven't seen the obvious correlary to the $ DEFINE SOURCE command.&lt;BR /&gt;&lt;BR /&gt;$ define source/translation=concealed DISK_DEVICE:&lt;BR /&gt;$ backup source:[PATH.TO.DIR]*.* save.set/save&lt;BR /&gt;$ define/trans=concealed destination OTHER_DISK_DEVICE:[OTHER.]&lt;BR /&gt;$ backup save.set/saveset destination:[*...]&lt;BR /&gt;&lt;BR /&gt;This will recreate the structure that the backup was made from under the root defined in the definition for "destination."  This will work whether the original selection for the backup was from a directory tree or a single directory, list of files or even a single file.&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Mon, 17 Jul 2006 16:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824313#M77647</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-07-17T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824314#M77648</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;Please re-read the original question, and the clarification thereoff.&lt;BR /&gt;Like you say in your answer, your procedure will re-create the original path, ie, _INCLUDING_ PATH.TO.DIR, while the question is to LEAVE OUT that part of the directory structure.&lt;BR /&gt;That is what the concealed device input construct does.&lt;BR /&gt;Also, the original question states "the directory AND SUBDIRECTORIES.&lt;BR /&gt;(my emphasis). And for that, DCL uses the ellipses ( ... )&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Tue, 18 Jul 2006 03:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824314#M77648</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-07-18T03:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: BACKUP Utility - directory tree, relative path</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824315#M77649</link>
      <description>Jan,&lt;BR /&gt;&lt;BR /&gt;I re-read the original question -- I may have mis-interpreted that Peter doesn't want to have a doubling of the original path name in the created tree.  It would be more clear if the PATH.TO.DIR didn't look just like the subtree of OTHER.PATH.TO.DIR &lt;BR /&gt;&lt;BR /&gt;Peter, can you clarify if you are talking about  a situation of copying from [A.B.C] to [D.E.F] or are you copying from [A.B.C] to [X.A.B.C] ?&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 18 Jul 2006 08:50:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/backup-utility-directory-tree-relative-path/m-p/3824315#M77649</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-07-18T08:50:37Z</dc:date>
    </item>
  </channel>
</rss>

