Copying an entire DIRECTORY TREE with MTOOLS
The current version of mtools includes the "/" switch for recursive
copies. For example:
athena% add mtools
athena% mcopy -/ dirname z:
will copy the entire "dirname" tree to a zip disk. Note that mcopy
will skip directory symlinks, but will traverse AFS mountpoints. Forexample, if you use the above command on your homedir, it will try to
copy the contents of ~/OldFiles, possibly doubling the disk space. To
avoid this, you can use the mbackup script described below. As with
any backup, make sure you have enough space on the disk before you
start.
An alternate method of archiving files in DOS format is the zipsplit
utility in the SIPB locker (man zip), which allows you to package and
compress files into a PKZIP-compatible format. This can be used to
split a large archive across several floppy disks.
The mbackup script copies the contents of an entire Athena directory
to a floppy disk or zip disk:
athena% add mtools
athena% mbackup a:/target source
will copy the contents of the "source" directory to the "target"
directory on the floppy disk. To copy to a zip disk, use z: instead
of a: (or x: or y:, depending on the partitioning of the zip disk).
mbackup will not follow AFS mountpoints (e.g. ~/OldFiles) below
"source".
(Keep in mind that copying large quantities of data using a 100M disk
in a 250M drive will be very slow).
|