# HG changeset patch # User roug # Date 1026032336 0 # Node ID a6eb496dbc1e8f9685df615765cccdf34b1f74c1 # Parent 94476830df51b38f559211c125d0e21b50e547bd Split up the commands into individual files. diff -r 94476830df51 -r a6eb496dbc1e docs/nitros9guide/dsave.refentry --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/nitros9guide/dsave.refentry Sun Jul 07 08:58:56 2002 +0000 @@ -0,0 +1,112 @@ + + +DSAVE +Generate procedure file to copy files + + + + +DSAVE + + + + + &replstart;devname&replend; + + + &replstart;path&replend; + + + + +Description + +Dsave is used to backup or copy all files in one or more +directories. It is unlike most other commands in that it does NOT +directly affect the system, rather, it generates a procedure file +which is executed later to actually do the work. + + +When DSAVE is executed, it writes copy commands to +standard output +to copy files from the current data directory +on &replstart;devname&replend; (the default is /D0) to the directory +specified by &replstart;path&replend;. If &replstart;path&replend; +does not appear, the copy is performed to the current data directory +at the time the DSAVE procedure file is executed. +If DSAVE +encounters a directory file, it will automatically include "makdir" +and "chd" commands in the output before generating copy commands for +files in the subdirectory. Since DSAVE is recursive in operation, +the procedure file will exactly replicate all levels of the file +system from the current data directory downward (such a section of +the file system is called a "subtree"). + + +If the current working directory happens to be the root directory of +the disk, DSAVE will create a procedure file that will backup the +entire disk file by file. This is useful when it is necessary to +copy many files from different format disks, or from floppy disk to +a hard disk. + + +Available DSAVE options are: + + + + + + + + +-b +make output disk a system disk by using source disk's +"OS9Boot" file,. if present. + + +-b=&replstart;path&replend; +make output disk a system disk using &replstart;path&replend; as source +for the "OS9Boot" file. + + +-i +indent for directory levels + + +-L +do not process directories below the current level + + +-m +do not include "makdir" commands in procedure file + + +-s&replstart;integer&replend; +set copy size parameter to &replstart;integer&replend; K + + + + + + + +For more information see: 1.1.3 + + +Examples + +Example which copies all files on "d2" to "d1": + + +chd /d2 (select "from" directory) +dsave /d2 >/d0/makecopy (make procedure file "makecopy") +chd /d1 (select "to" directory) +/d0/makcopy (run procedure file) + +chd /d0/MYFILES/STUFF +dsave -is32 /d0 /d1/BACKUP/STUFF >saver +/d0/MYFILES/STUFF/saver + + + +