home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 52
/
af052sub.adf
/
newlist.lha
/
NewList
/
Scripts
/
BackUp
< prev
next >
Wrap
AmigaDOS Script File
|
1993-07-16
|
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