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.2.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file filesync-0.1.2.tar.gz
.
File metadata
- Download URL: filesync-0.1.2.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 |
e355e48a065fb8cfa48cb8b7d221ae5ab02c06518ea10d5cbb57e7dd7199b9ed
|
|
MD5 |
727f2924ad40fc0b766def18a19b8383
|
|
BLAKE2b-256 |
e1e388e72169e73d37fab7a5a55caf084636642483c46daed4e55514f72ef36c
|
File details
Details for the file filesync-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: filesync-0.1.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5eee22f9b452fe5581ac24b8fc747f3907c814e37d6ca5d8166a0da5bae52be1
|
|
MD5 |
f9f83eb804fae3ffc7e5cd03aabecc5b
|
|
BLAKE2b-256 |
c967e95a4d100f3faa01c7190ad41c7e6dd317fcd817bda15708220b5676acf2
|