Clone directory (recursive) and restore any changes made to it.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
myitinos 9326a26f9b Update 'README.md' pirms 4 gadiem
LICENSE Update 'LICENSE' pirms 4 gadiem
README.md Update 'README.md' pirms 4 gadiem
clone.py replace os.system(cp) with shutil.copyfile pirms 4 gadiem

README.md

py-dir-watcher

  1. Copy a directory to a backup location.
  2. Check for changes in original directory's file content.
  3. Replace with the original file content if changes are found.

Cloner

  • target is the directory to clone
  • backup is the backup directory
  • interval is the interval which the script check for changes

How does it check for changes?

This script check for changes by comparing md5 hash from original file and the clone file.