This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Sync files and directories over SSH

Project Description

Sync files and directories over SSH.

Update destination files according to the source size and modified time. Remove destination files and directories if not present at source or excluded (include/exclude parameters).

Example:

# We synchronize a stock Android phone sdcard mountpoint to our home (assuming a SSH server is running on the device)

from sftpsync import Sftp

sftp = Sftp(‘192.168.1.149’, ‘root’, ‘password’, port=2222)

src = ‘/mnt/sdcard’ dst = ‘/home/user/phone-backup/’

# We don’t want to backup everything exclude = [r’^Music/’, r’^Video/’]

sftp.sync(src, dst, download=True, exclude=exclude, delete=True)

# We sync a local directory to the phone src = ‘/home/user/data/code/sftpsync-py’ dst = ‘/mnt/sdcard/data/’

sftp.sync(src, dst, download=False, delete=True)

Install:

pip install sftpsync
or
conda install -c mjirik sftpsync
Release History

Release History

This version
History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sftpsync-1.0.8.tar.gz (6.6 kB) Copy SHA256 Checksum SHA256 Source Jun 11, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting