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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file dirsync-2.0c1.zip
.
File metadata
- Download URL: dirsync-2.0c1.zip
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9839d121e6ba32cc47c5b409ba386448a5766327aa073f63067e63620f0ac266 |
|
MD5 | b8ca749beefce2fdc5b5693b138ea5b9 |
|
BLAKE2b-256 | 29a3b851f82015a24062e7922b9761422c34e2d20e1e23e7864a6d31da067b37 |
File details
Details for the file dirsync-2.0c1.win32.exe
.
File metadata
- Download URL: dirsync-2.0c1.win32.exe
- Upload date:
- Size: 210.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50c724aa0af6d43ab3dd6cc20a0f1a63fd3fe4e2ec87229019ed1e2791004c10 |
|
MD5 | bb388f975c57557857c0fec0eeabd7df |
|
BLAKE2b-256 | fc3dbc4a474a11f6fc4962b9d437a97db1206a7d48105f9edbb4743f2e734dc2 |
File details
Details for the file dirsync-2.0c1-py2.7.egg
.
File metadata
- Download URL: dirsync-2.0c1-py2.7.egg
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e8369306e5239fa760375d4f067bc05f6593415b73b3c8bf65190fbc8508c4 |
|
MD5 | 0968f9fabac563628cf6acb8047e357f |
|
BLAKE2b-256 | ed3b1fed26b9f20c45b60b9530373ada56466de353b2c60d8df8736b3214ee7a |