Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!sri-spam!mordor!lll-tis!ptsfa!ihnp4!homxb!mtuxo!mtune!petsd!peora!joel From: joel@peora.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: How to match up directories on different drives - query Message-ID: <2621@peora.ccur.com> Date: Thu, 5-Nov-87 09:13:45 EST Article-I.D.: peora.2621 Posted: Thu Nov 5 09:13:45 1987 Date-Received: Sun, 8-Nov-87 11:25:32 EST References: <594@parcvax.Xerox.COM> Organization: Concurrent Computer Corporation, Orlando, Fl Lines: 41 Keywords: automatic "cd" to same subdirectory Summary: Use XCOPY/MCOPY to backup to floppy under MS/DOS 3.2 In article <594@parcvax.Xerox.COM>, burton@parcvax.Xerox.COM (Philip M. Burton) writes: > I do my backup by subdirectory onto floppies from my hard disk. Each > subdirectory has its own floppy or set of floppies. > > I would like a method to have a floppy in either drive A: or B: > automatically cd to the same subdirectory as the subdirectory on disk > C:, or match up the subdirectory on C: to the subdirectory on drive A: > or B:. Under DOS 3.2 or above XCOPY makes a good utility to back up this way since you can set it to automatically copy subdirectories and to only copy files that have the archive bit set, then reset it. This way you only back up files that have actually been changed or created since your last backup. You copy XCOPY to the name MCOPY to avoid cetain prompts by the program. For instance I have a BACK.BAT that looks something like this (I'm doing this from memory) pushdir cd \ mcopy c:%1 b: /s /m /v popdir So to back up subdirectory AUTO, I would put the AUTO floopy in the B drive and enter BACK AUTO. Any files I changed would be copied to the AUTO directory on the floppy. I might have put a %1 after b:, I don't remember, but it does put the files in a subdirectory on the floppy (a 720kb in this case). This is handy since I sometimes back up several small subdirectories to one floppy. This doesn't work if the subdirectory is too large for one floppy, then I use two utilities from PC Magazine, BAC and ATTR. BAC will put all the selected files on one or several floppies, while ATTR lets me reset the archive bits so I can identify what I need to back up. -- Joel Upchurch @ CONCURRENT Computer Corporation (A Perkin-Elmer Company) Southern Development Center 2486 Sand Lake Road/ Orlando, Florida 32809/ (305)850-1040 {decvax!ucf-cs, ihnp4!pesnta, vax135!petsd, akgua!codas}!peora!joel