annotate docs/nitros9guide/dsave.refentry @ 2112:cfb3a637a000

Fixed lack of H6309 flag
author boisy
date Tue, 21 Aug 2007 17:05:14 +0000
parents b00cf13c9f61
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
1 <refentry id="dsave">
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
2 <refnamediv>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
3 <refname>DSAVE</refname>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
4 <refpurpose>Generate procedure file to copy files</refpurpose>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
5 </refnamediv>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
6
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
7 <refsynopsisdiv>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
8 <cmdsynopsis>
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1053
diff changeset
9 <command>dsave</command>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
10 <arg choice="opt">
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
11 <option>opts</option>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
12 </arg>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
13 <arg choice="opt">
975
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 648
diff changeset
14 <replaceable>path</replaceable>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
15 </arg>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
16 </cmdsynopsis>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
17 </refsynopsisdiv>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
18
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
19 <refsect1><title>Description</title>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
20 <para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
21 Dsave is used to backup or copy all files in one or more
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
22 directories. It does not execute the commands; instead, it echos commands
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
23 to standard output. This output can be redirected to a file and executed later as a procedure file.
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
24 </para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
25 <para>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
26 When <command>dsave</command> is executed, it writes copy commands to
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
27 <emphasis>standard output</emphasis>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
28 to copy files from the current <emphasis>data</emphasis> directory
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
29 to the directory specified by <replaceable>path</replaceable>.
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
30 If <command>dsave</command>
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
31 encounters a directory file, it will automatically include <command>makdir</command>
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
32 and <command>chd</command> commands in the output before generating copy commands for
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
33 files in the subdirectory. Since <command>dsave</command> is recursive in operation,
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
34 the procedure file will exactly replicate all levels of the file
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
35 system from the current data directory downward (such a section of
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
36 the file system is called a &quot;subtree&quot;).
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
37 </para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
38 <para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
39 If the current working directory happens to be the root directory of
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
40 the disk, <command>dsave</command> will create a procedure file that will backup the
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
41 entire disk file by file. This is useful when it is necessary to
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
42 copy many files from different format disks, or from floppy disk to
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
43 a hard disk.
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
44 </para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
45 <para>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
46 Available <command>dsave</command> options are:
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
47 </para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
48
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
49 <informaltable frame="none">
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
50 <tgroup cols="2">
648
f9c66ad345d1 XMLified.
roug
parents: 137
diff changeset
51 <colspec colwidth="1in"/>
f9c66ad345d1 XMLified.
roug
parents: 137
diff changeset
52 <colspec colwidth="4in"/>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
53 <tbody>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
54 <row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
55 <entry>-b</entry>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
56 <entry>make output disk a system disk by using source disk's
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
57 <filename>OS9Boot</filename> file,. if present.</entry>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
58 </row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
59 <row>
975
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 648
diff changeset
60 <entry>-b=<replaceable>path</replaceable></entry>
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 648
diff changeset
61 <entry>make output disk a system disk using <replaceable>path</replaceable> as source
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
62 for the <filename>OS9Boot</filename> file.</entry>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
63 </row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
64 <row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
65 <entry>-i</entry>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
66 <entry>indent for directory levels</entry>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
67 </row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
68 <row>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
69 <entry>-l</entry>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
70 <entry>do not process directories below the current level</entry>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
71 </row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
72 <row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
73 <entry>-m</entry>
1053
b5ff125a1d60 Since this book was only typeset in fixed width, single-font, they used
roug
parents: 975
diff changeset
74 <entry>do not include <command>makdir</command> commands in procedure file</entry>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
75 </row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
76 <row>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
77 <entry>-r</entry>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
78 <entry>forces the copy command to rewrite the file at its destination if it already exists</entry>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
79 </row>
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
80 <row>
975
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 648
diff changeset
81 <entry>-s<replaceable>integer</replaceable></entry>
c565a4700689 The entitity replstart was replaced with <replaceable>
roug
parents: 648
diff changeset
82 <entry>set copy size parameter to <replaceable>integer</replaceable> K</entry>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
83 </row>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
84 </tbody>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
85 </tgroup>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
86 </informaltable>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
87
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
88
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
89 <para>
1093
4dae346c4969 Added crossreferences and lowercased synopsises
roug
parents: 1053
diff changeset
90 For more information see: <xref linkend="sec2.3"/>
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
91 </para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
92 </refsect1>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
93 <refsect1><title>Examples</title>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
94 <para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
95 Example which copies all files on &quot;d2&quot; to &quot;d1&quot;:
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
96 </para>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
97 <screen>
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
98 chd /d0 (select &quot;from&quot; directory)
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
99 dsave /d1 &gt;/d0/makecopy (make procedure file &quot;makecopy&quot;)
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
100 /d0/makcopy (run procedure file)
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
101
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
102 chd /d0/MYFILES/STUFF
1500
b00cf13c9f61 Major changes for new NitrOS-9 manual
boisy
parents: 1093
diff changeset
103 dsave -is32 /d1/BACKUP/STUFF &gt;saver
137
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
104 /d0/MYFILES/STUFF/saver
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
105 </screen>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
106 </refsect1>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
107 </refentry>
a6eb496dbc1e Split up the commands into individual files.
roug
parents:
diff changeset
108