-Downloadthejarfileunderdownloads.-Openaconsole/terminal/command-line-Changetothedirectorytowhichthefilewasdownloaded-EnsurethatJavaisinstalledinthecomputer(type"java"attheterminal)oruseaPortableversionofJava(wastestedsuccessfullywiththeversionthatcomeswithPortableApps.com)-Intheterminal,type"java -jar binarycopy.jar -h"andpressENTER.Thehelpfortheprogramshouldshowup.-Youmusthavereadpermissionsonthedirectories/filesyouwanttocopyandread/writepermissionsonthedirectoryforwhichyouwanttocopythem.Ifyoudon't the program will let you know.
The program was tested under Windows 7 but should work just as well under any OS that supports Java.
Quick usage examples:
1 - copy contents of directory A to B without checking if files where correctly copied (this is the fastest method of copy but lest safe)
java -jar binarycopy.jar -nc i=A o=B
2 - copy directory \A\C (not the contents) to B with verification and create SHA-1 files for each file copy. The names of the SHA-1 files will be the name of the files to copy appended with ".sha1" (this behavior can not be changed right now)
java -jar binarycopy.jar i=\A\C o=B\C -co
3 - copy contents of directory A to B only if they do not exist in B (only checks for existence, not size or date), create SHA-1 files for both the source and destination files and log every action in the file "copy.log" (if no path is specified, the Java default is to store files in the Java bin directory)
4 - copy contents of directory A to B only if they do not exist in B, log every action in the default log file ("binarycopy.log") and use a size optimized buffer to read/write files
This program is easy to use. Follow these steps:
The program was tested under Windows 7 but should work just as well under any OS that supports Java.
Quick usage examples:
1 - copy contents of directory A to B without checking if files where correctly copied (this is the fastest method of copy but lest safe)
2 - copy directory \A\C (not the contents) to B with verification and create SHA-1 files for each file copy. The names of the SHA-1 files will be the name of the files to copy appended with ".sha1" (this behavior can not be changed right now)
3 - copy contents of directory A to B only if they do not exist in B (only checks for existence, not size or date), create SHA-1 files for both the source and destination files and log every action in the file "copy.log" (if no path is specified, the Java default is to store files in the Java bin directory)
4 - copy contents of directory A to B only if they do not exist in B, log every action in the default log file ("binarycopy.log") and use a size optimized buffer to read/write files
Improvements for future versions:
More detailed documentation, including development details, will (hopefully) come soon :)
Last edit: ElusiveDeadGhostBrain 2012-08-18