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://... my 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.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

filesync-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file filesync-0.1.0.tar.gz.

File metadata

  • Download URL: filesync-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for filesync-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6223453c2fde79cb657529a2c58e009519627396dd1921f31a4ae56dfd33a9fc
MD5 cf072ef6087622255ceec9a6bb399c64
BLAKE2b-256 64f0bde975518899314ff37e1a57290d8c1ab66e3796f1c61e0c7e3a8e9f7a3f

See more details on using hashes here.

File details

Details for the file filesync-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: filesync-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for filesync-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e13e3f11d29888fa930c8b2d851408e276ede5df6cc844e906383567a57bfa62
MD5 e3b0f6a72caffe7fb3aad3974c52180f
BLAKE2b-256 fc2b506e11bd625124f608a1245713a1f2616cf70bbd717c30154d8092e6a511

See more details on using hashes here.

Supported by

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