Short: Tiny directory/link copy program Author: thor@einstein.math.tu-berlin.de Uploader: thor@einstein.math.tu-berlin.de Type: disk/bakup _____________________________________________________________________________ The THOR-Software Licence This License applies to the computer programs known as "SortCopy". The "Program", below, refers to such program. The programs and files in this distribution are freely distributable under the restrictions stated below, but are also Copyright (c) Thomas Richter. Distribution of the Program by a commercial organization without written permission from the author to any third party is prohibited if any payment is made in connection with such distribution, whether directly (as in payment for a copy of the Program) or indirectly (as in payment for some service related to the Program, or payment for some product or service that includes a copy of the Program "without charge"; these are only examples, and not an exhaustive enumeration of prohibited activities). However, the following methods of distribution involving payment shall not in and of themselves be a violation of this restriction: (i) Posting the Program on a public access information storage and retrieval service for which a fee is received for retrieving information (such as an on-line service), provided that the fee is not content-dependent (i.e., the fee would be the same for retrieving the same volume of information consisting of random data). (ii) Distributing the Program on a CD-ROM, provided that the files containing the Program are reproduced entirely and verbatim on such CD-ROM, and provided further that all information on such CD-ROM be redistributable for non-commercial purposes without charge. Everything in this distribution must be kept together, in original and unmodified form. Limitations. THE PROGRAM IS PROVIDED TO YOU "AS IS," WITHOUT WARRANTY. THERE IS NO WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IF YOU DO NOT ACCEPT THIS LICENCE, YOU MUST DELETE ALL FILES CONTAINED IN THIS ARCHIVE. _____________________________________________________________________________ Purpose of this program: Copy one or multiple directories. This is absolutely nothing new, but unlike other copy tools, this one tries to copy links as well. If the link source and the link destination is copied, "SortCopy" will erase the link destination and re-create the link to the copy of the link source. This works for both, SoftLinks and HardLinks, as well as links to directories as long as the directory and the link to the directory is copied. As a tiny extra, it keeps the destination directories alphabetically sorted. You may also choose to copy only files with the "a" (archive bit) reset, or set the "a" bit of files copied. All this makes "SortCopy" useful for a very simple backup procedure, as it re-creates a one to one image of the directory you want to copy. The same program can be used to restore the copy. Synopsis: SortCopy FROM/A,TO/A,QUIET/S,QUIETER/S,SETARCHIVE/S,NONAONLY/S, OVERWRITE/S,LEAVEEMPTY/S,DELETECOPIED/S,FORCE/S FROM: Source directory or source directories. Wildcards are allowed here. TO: Destination of the copy operation. No wildcards allowed. QUIET: Suppresses printing the file names beeing copied. QUIETER: Suppresses all messages except errors and warnings. SETARCHIVE: Set the archive bit after copying. NONAONLY: Copies only files with the A bit cleared, i.e. non- archived files. All directories are copied unless they contain only archived files and directories. OVERWRITE: Overwrite destination files, even though they are write protected. LEAVEEMPTY: Don't delete empty directories in the destination, unlike what is usually done if no file worth copying is in this directory (i.e. no file with a reset a-bit). DELETECOPIED: Delete the source files after copying. This delete operation is canceled if some error or warning occured during the copy operation before. FORCE: Delete also files that are protected from deletion. Thomas, May 1997 ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 8868 4488 49.3% 31-May-97 21:57:22 SortCopy 4447 2072 53.4% 31-May-97 22:00:52 SortCopy.readme -------- ------- ----- --------- -------- 13315 6560 50.7% 04-Jun-97 17:32:50 2 files