Skip to main content

A file sync lib

Project description

filesync

A file sync tool to sync local files using webdav

To install this software you may use the PIP package manager such as shown below

sudo pip install filesync

Use sync_folder as shown below to copy local files to cloud or visa verse

from filesync.filesync import sync_folder

cloud_uri="https://myuser:mypassword@webdav.cloud.."
local = "/media/data"


###############
# sync from cloud

print("** sync cloud homevideo -> local homevideo **")
sync_folder(cloud + '/homevideo', local + '/homevideo', ignore_patterns=['*/~*'])

print("** sync cloud family -> local family **")
sync_folder(cloud + '/family', local + '/family', ignore_patterns=['*/~*'])



###############
# sync to cloud

print("** sync local homevideo -> cloud  homevideo **")
sync_folder(local + '/homevideo', cloud + '/homevideo', ignore_patterns=['*/~*'])

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

filesync-0.1.3.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

filesync-0.1.3-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

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