Commits

Erik Schweller committed e3acc6e

bump version, expand readme, fix typo

Comments (0)

Files changed (3)

 As with all code that walks a file tree, please use with caution and expect
 absolutely no warranty! :)
 
+
+Command examples:
+
+  Generate a duplicate file report for a path:
+      dedupe_copy.py -p /Users/ -r dupes.csv -m manifest
+
+  Copy all *.jpg files from multiple paths to a /YYYY_MM/*.jpg structure
+      dedupe_copy.py -p C:\pics -p D:\pics -e jpg -R jpg:mtime -c X:\pics
+
+  Copy all files from two drives to a single target, preserving the path for
+  all extensions:
+      dedupe_copy.py -p C:\ -p D:\ -c X:\ -m X:\manifest -R *:no_change
+
+  Resume an interrupted run (assuming "-m manifest" used in prior run):
+    dedupe_copy.py -p /Users/ -r dupes_2.csv -i manifest -m manifest
+
+  Sequentially copy different sources into the same target, not copying
+  duplicate files (2 sources and 1 target):
+    1.) First record manifests for all devices
+        dedupe_copy.py -p \\target\share -m target_manifest
+        dedupe_copy.py -p \\source1\share -m source1_manifest
+        dedupe_copy.py -p \\source2\share -m source2_manifest
+
+    2.) Copy each source to the target (specifying --compare so manifests from
+        other sources are loaded but not used as part of the set to copy and
+        --no-walk to skip re-scan of the source):
+        dedupe_copy.py -p \\source1\share -c \\target\share -i source1_manifest
+            --compare source2_manifest --compare target_manifest  --no-walk
+        dedupe_copy.py -p \\source2\share -c \\target\share -i source2_manifest
+            --compare source1_manifest --compare target_manifest --no-walk
+
+
+Complete example:
+    
+    Assuming you start with a set of files laid out as follows:
+
+    C:\
+        pics
+            some_photos
+                photo1.jpg
+                photo2.jpg
+            photo3.jpg
+    D:\
+        pics
+            copied_photo
+                photo3.jpg
+            photo4.jpg
+
+    And you run the command:
+    > dedupe_copy.py -p C:\pics -p D:\pics -e jpg -R jpg:mtime -c X:\photos
+
+    You would end up with the following (photo3.jpg was a true duplicate):
+
+    X:\
+        photos
+            2012_08
+                photo1.jpg
+                photo2.jpg
+                photo3.jpg
+            2012_09
+                photo4.jpg
+
+
 This project is on bitbucket: http://www.bitbucket.org/othererik/dedupe_copy

dedupe_copy/dedupe_copy.py

   Generate a duplicate file report for a path:
       dedupe_copy.py -p /Users/ -r dupes.csv -m manifest
 
-  Copy all *.jpg files from multiple pats to a /YYYY_MM/*.jpg structure
+  Copy all *.jpg files from multiple paths to a /YYYY_MM/*.jpg structure
       dedupe_copy.py -p C:\pics -p D:\pics -e jpg -R jpg:mtime -c X:\pics
 
   Copy all files from two drives to a single target, preserving the path for
 
 setup(
     name='DedupeCopy',
-    version='0.2',
+    version='0.2.1',
     author='Erik Schweller',
     author_email='othererik@gmail.com',
     packages=['dedupe_copy', 'dedupe_copy.test', ],