Skip to main content

Advanced directory tree synchronisation tool

Project description

© 2014 Thomas Khyn © 2003 Anand B Pillai

Advanced directory tree synchronisation tool

based on Python robocopier by Anand B Pillai

Usage

From the command line:

dirsync <sourcedir> <targetdir> [options]

From python:

from dirsync import sync
sync(sourcedir, targetdir, **options)

Main Options:

Chosing one option among the following ones is mandatory

--diff, -d Only report difference between sourcedir and targetdir
--sync, -s Synchronize content between sourcedir and targetdir
--update, -u Update existing content between sourcedir and targetdir

Additional Options:

--verbose, -v Provide verbose output
--purge, -p Purge files when synchronizing (does not purge by default)
--force, -f Force copying of files, by trying to change file permissions
--nodirection, -n
 Create target directory if it does not exist (By default, target directory should exist.)
--create, -c Only compare file’s modification times for an update (By default, compares source file’s creation time also)
--modtime, -m Update existing content between sourcedir and targetdir
--ignore, -x patterns
 Regex patterns to ignore
--only, -o patterns
 Regex patterns to include (exclude every other)
--exclude, -e patterns
 Regex patterns to exclude
--include, -i patterns
 Regex patterns to include (with precedence over excludes)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dirsync, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size dirsync-2.0.zip (11.7 kB) File type Source Python version None Upload date Hashes View
Filename, size dirsync-2.0.win32.exe (242.9 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size dirsync-2.0-py2.7.egg (15.1 kB) File type Egg Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page