home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Micro R&D 1
/
MicroRD-CD-ROM-Vol1-1994.iso
/
os20
/
cli
/
newlist82.lha
/
Scripts
/
BackUp
< prev
next >
Wrap
AmigaDOS Script File
|
1993-06-05
|
593b
|
22 lines
.key from/a,to/a
; Primitive backup utility, but a neat example of what newlist can do.
;
; finds files that needs to be backed up...copies them....and changes the
; protection bits to being archived.
;
; insert a -h flag if you do not want all the verbose output.
if exists <to>
if exists <from>
echo ""
echo "Making backups to <to>"
nl <from> -[iHtE "copy \'%P\' to <to> \n protect \'%P\' arwed quiet"
else
echo "ERROR: <from> does not exist!"
echo ""
endif
else
echo "ERROR: <to> does not exist!"
echo ""
endif