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.

Source Distribution

dirsync-2.0.zip (11.7 kB view details)

Uploaded Source

Built Distributions

dirsync-2.0.win32.exe (242.9 kB view details)

Uploaded Source

dirsync-2.0-py2.7.egg (15.1 kB view details)

Uploaded Source

File details

Details for the file dirsync-2.0.zip.

File metadata

  • Download URL: dirsync-2.0.zip
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dirsync-2.0.zip
Algorithm Hash digest
SHA256 cc08904fe79e40cff508b4ddcd75e8efb59f447be6682779a70dddeae58dcf06
MD5 9c0eec891885800f0a55532ccde7d3f7
BLAKE2b-256 f84bc6003e4279d159c577ea99115a6dc304a182c2aed31ae6ee72958163e2e1

See more details on using hashes here.

File details

Details for the file dirsync-2.0.win32.exe.

File metadata

  • Download URL: dirsync-2.0.win32.exe
  • Upload date:
  • Size: 242.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dirsync-2.0.win32.exe
Algorithm Hash digest
SHA256 23f0f469c7835d16b171d4bf44596bc45dc59543be30fcbf55eac1cc6e927df9
MD5 26928df1b65b9b0a6f5cadc4f277bb58
BLAKE2b-256 6a22e5ef13144e89b81ee0f9a55f61e105afdcc1ee070256da247c1bce7729e4

See more details on using hashes here.

File details

Details for the file dirsync-2.0-py2.7.egg.

File metadata

  • Download URL: dirsync-2.0-py2.7.egg
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dirsync-2.0-py2.7.egg
Algorithm Hash digest
SHA256 1ec2dc1babb4a8664f18ccdb42f2d3a6ab01f2af67e5de3c5c56f789bd6ef0fe
MD5 969691174b3cd90ea6e4babfd4261072
BLAKE2b-256 c90b4ec62bf7b806120e06778b2e113b74b3334f4a87c74b84d653148323b8d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page