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
Release history Release notifications | RSS feed
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.1.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file filesync-0.1.1.tar.gz
.
File metadata
- Download URL: filesync-0.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
af7d7e3c1cfafdc977ad5aa6cf7acd72f3606ff92b4e7535e0dfe19cf87a30bc
|
|
MD5 |
aecf73a0b75d5e3a325407a827ddee59
|
|
BLAKE2b-256 |
cedf85644dfe70db7b5b590492412d0a4d15834228c0518aec24707bd0746975
|
File details
Details for the file filesync-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: filesync-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0573cced8b085e2fbb8714c31671db29fb08ca85755c5d5bf71b4970a1b6118c
|
|
MD5 |
d2e9ec0a5332e9fb6e1af12597c726de
|
|
BLAKE2b-256 |
7c502dc4247d48e37f81e1d5668543ec250277beeb0d34a3d38a1a20e3165c75
|