home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / ZCPR33 / BU-ARCH.DOC < prev    next >
Text File  |  2000-06-30  |  3KB  |  67 lines

  1.                      BACKUP/ARCHIVE ALIASES
  2.                          by Jim Lindholm
  3.                              2/13/88
  4.  
  5.  
  6. After backing up your files several times, have you ever found
  7. that you had the same file on several different disks or could
  8. not "remember" which disk a particular file was on so you could
  9. put its natural update on the same disk or even overwrite the
  10. outdated one?
  11.  
  12. It's one thing to be even close to having the right disk, but
  13. when you are using floppies that only hold 126k it can become
  14. ridiculous.  Hence, I created the following aliases.  Their
  15. success is primarily responsible to Steve Cohen for creating W20
  16. and to Jay Sage and Rob Wood for updating the wildcard shell to
  17. W21 and W22 successively.
  18.  
  19. I chose AC for most of my work because it tells me when a floppy
  20. disk is full and allows me to insert another and continue my
  21. backup process.  I am not fond of the archive bit being set on
  22. destination file, but what can you do when the author does not
  23. see it that way.  Alas, I use SFA to turn it off when I have
  24. completed work on a floppy.  Also, I have modified W22 to display
  25. inverse in the header (w22x in aliases) and have included an
  26. inverse ECHO display in my aliases for aesthetic purposes.
  27.  
  28. The first alias is simply to move files with the archive bit off
  29. into a user area named BACKUP:.  I chose ACOPY because I am able
  30. to control the destination archive bit.  If I want to move non-
  31. archived files from all user areas into BACKUP:, I would use AC,
  32. then SFA to set up my archiving process to FLOPPY1:.
  33.  
  34. BAK a7:acopy17 backup:=*.* /no
  35.  
  36.  
  37. The next two aliases basically log onto my floppy disk named
  38. FLOPPY1:, reads the first file name, then checks to see if it is
  39. waiting to be transfered to the floppy from the BACKUP area.  If
  40. it is, it moves it.  If it is not, the alias moves to the next
  41. floppy filename and repeats the process.  When all files on the
  42. floppy is checked, I put in another floppy and repeat.
  43.  
  44. ARC cls;e0:;a15:w22x archive *.*;a15:sfa *.* /-arc;$d0$u0:
  45.  
  46. ARCHIVE if ex e0:$1;a15:ac44 floppy1:=backup:$1 /aeo;a15:sak
  47. /p4;cls;echo  <W V%>ers. 2.2 installed> ;else;fi
  48.  
  49.  
  50. Optionally, for those of you that like ACOPY
  51.  
  52. ARK cls;e0:;a15:w22x arch *.*;a15:sfa *.* /-arc;$d0$u0:
  53.  
  54. ARCH if ex e0:$1;a7:acopy17 floppy1:=backup:$1 /mo;a15:sak
  55. /p4;cls;echo  <W V%>ers. 2.2 installed> ;else;fi
  56.  
  57.  
  58. The final alias simply takes the remaining files from BACKUP: and
  59. moves them to a FLOPPY1:.
  60.  
  61. BACKUP a15:ac44 floppy1:=backup:*.* /ae;a15:sfa e0:*.* /-arc
  62.  
  63.  
  64. Enjoy these if they make any sense to you.  Any comments can be
  65. left on Jay Sage's or Al Hawley's Z-Nodes and of course if you
  66. can get through to Z-Node Central... Jim
  67.