Directory Sync (drsync) helps you keep two directories separated by network in sync.
- Very thin wrapper around rsync
- Built to keep a portable development environment in mind and is greatly inspired by tools like
git
,mercurial
- Two way on demand sync
- Supports one way live stream of changes
- Support sync target alias to send/recieve data from mulitple locations
- Sync directory between two systems for developer working over VPN/low bandwidth network
- Keep a close to real time/ on demand backup of a directory somewhere remote
- Send data to multiple location
- Get data from multiple location
pip install drsync
- Go to desired directory and run
drsync -r
. - It will register the directory and copy configs to path printed on console.
- Review
rsyncfilter
file and make changes as needed. - To override default filter template
- copy files from you pip install site_packages.
example: cp ../python2.7/site-packages/dsync/dsync/data/*.txt ~/.drsync/
- Use liveSync feature only if you are sure you won't update anything on remote end, to avoid any kind of data loss.
1. Kill live sync when you need to perform changes on remote site, pull those changes and resume livesync.
1. Other choice is update dsync_conf and remove
--delete
from rsync opts - If not using liveSync and you have made changes on remote end, do a pull before doing anything else.
Always review payload after config change using "test" option
- With python 2.7