home *** CD-ROM | disk | FTP | other *** search
- .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
-