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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: filesync-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 619bee905279f926d1e05492bfe91c8db2a8bd4ea206401718536e9eef7931db
MD5 cb35c30b5f7530ceddb8ce0914d5e7d5
BLAKE2b-256 1c1ba87fb912d0befcb47182669ed5af6125b88058f48855b9d822a5d7b5340d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: filesync-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 abb137464a8f2a54da7b4e6be5721acbc95a38d71cac83b795fd0523f96283fc
MD5 17be06f1c08b905fcdd9ca8494056d6a
BLAKE2b-256 ebd487973d1fd963136fd55fdaf66a8236e1f44224b7b086e1fd9fac0a573557

See more details on using hashes here.

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